Starting VMware vSphere PowerCLI automatically loads the script configuration file Initialize-PowerCLIEnvironment.ps1.

This file is located in the Scripts folder in the VMware vSphere PowerCLI installation directory. Loading the file provides access to PowerCLI cmdlets aliases, like Get-VC, Get-ESX, and to other configuration settings. Administrators can edit and extend the script to define cmdlets aliases, configure the environment, or set PowerCLI startup actions.

Note

After editing the Initialize-PowerCLIEnvironment.ps1 script, you might need to sign it.

If you access the PowerCLI snapins from other tools, such as PowerShell Plus or PowerGUI, the Initialize-PowerCLIEnvironment.ps1 script configuration file is not started automatically and you must load it by typing its name in the console window:Initialize-PowerCLIEnvironment.ps1.