If you want to work with vSphere PowerCLI from another PowerShell-based tool, such as PowerShell Plus or PowerGUI, you must load the default script configuration file manually.


Run the PowerShell-based tool you have installed on your system.


At the command line, change the active directory to the folder where you have installed vSphere PowerCLI.


In the command line, type .\Scripts\Initialize-PowerCLIEnvironment.ps1 and press Enter.

After the tool loads the default script configuration file, custom script configuration files, if any, load automatically.