You can install PowerCLI by running a Windows PowerShell command. You can install all official modules with a single command, or install modules individually.
The PowerCLI modules are available on the PowerShell Gallery Web site. When you run Install-Module from the Windows PowerShell prompt, the command downloads and installs the specified module. For a list of available PowerCLI modules, see the PowerShell Gallery Web site.
■
|
Before installing PowerCLI, see Prerequisites for Installing and Running PowerCLI. |
■
|
Verify that you have uninstalled PowerCLI 6.5 R1 or earlier from your system. |
■
| |
■
|
Verify that you have registered the PowerShell Gallery as a local repository. |
■
|
If you use Windows PowerShell 3.0 or 4.0, install the PowerShellGet and PackageManagement modules from the PowerShell Gallery Web site. |
1 | |
2 | To install all official PowerCLI modules, run the following command. Install-Module VMware.PowerCLI -Scope CurrentUser The modules are installed to $home\Documents\WindowsPowerShell\Modules. |
Enable execution of local scripts. See Allow Execution of Local Scripts.