Reply to Message

View discussion in a popup

Replying to:
frostyk
Enthusiast
Enthusiast

It will do that if you haven't loaded the PowerCLI modules in your session.  I think this script is older and uses the old method of loading them so you'll need to run this before the script or put it at the top:

Import-module VMware.VimAutomation.Core

Or just run it from the PowerCLI shortcut that's on your desktop after installing powercli (it loads them automatically).  Also make sure you are running this on a system where you have installed powercli.