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.

1

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

2

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

3

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.