Prerequisites
You may review the prerequisites for PowerCLI 5.0, limitations of the 32 bit version of Windows Powershell, and obtain a list of compatible versions of vSphere at the release notes page. A list of known issues is also provided on this page.
To successfully install PowerCLI 5.0 the following are required:
A supported version of .NET Framework
- .NET 2.0 SP2
- .NET 3.0 and SP1/SP2
- .NET 3.5 SP1
A supported version of Powershell
- Windows Powershell 2.0
A supported operating system
- Windows 7 SP1
- Windows Server 2008 R2 SP1
- Windows XP SP2/SP3
- Windows Server 2003 R2
Standard product overview
PowerCLI is a add-on to PowerShell that provides commands for automating and managing vSphere and vCloud.
Component | Description |
VMware.VimAutomation.Core | VMware vSphere PowerCLI 5.0 provides cmdlets for automated administration of the vSphere environment. |
VMware.VimAutomation.License | VMware License PowerCLI 5.0 provides the Get-LicenseDataManager cmdlet for managing VMware License components. |
VMware.ImageBuilder | VMware ImageBuilder PowerCLI 5.0 provides cmdlets for managing depots, image profiles, and VIBs. |
VMware.DeployAutomation | VMware Auto Deploy PowerCLI 5.0 provides cmdlets that provide an interface to VMware Auto Deploy for provisioning physical hosts with ESXi software. |
VMware.VumAutomation (Snap-In) | For Managing the vSphere Update Manager patches, baselines, staging patches, remediation, scanning, and downloading. |
VMware.VimAutomation.Cloud (Snap-In) | vCloud Director PowerCLI 1.5 is an optional component that you can install during the PowerCLI installation. It provides the VMware vCloud Director PowerCLI 1.5 snap-in with cmdlets for automating the vCloud Director 1.5 features. Available for download here. |
Before you begin
Download PowerCLI from VMware.
Installation
- Execute the installer. In our lab, we are ran VMware-PowerCLI-5.0.1-581491.exe.
- If warned about VIX, click OK to continue.
- At the welcome screen, click Next.
- At the patent screen, click Next.
- At the license screen, accept the license and click Next.
- At the Destination folder screen, optionally change the location of the installation and then click Next.
- At the Ready to Install screen, click Install.
- Click Finish.
Initial Execution of PowerCLI
- From Start, search for PowerCLI and right click to run as an administrator
- Connect to your vCenter server to test PowerCLI: Connect-VIServer -server vCenterAddress -user username -password password
If you plan on running scripts and cmdlets with PowerCLI, you may need to adjust your execution policy. The command to retrieve the current setting is Get-ExecutionPolicy. To set the execution policy to something less restrictive, run Set-ExecutionPolicy RemoteSigned. More information regarding this topic may be found on Microsoft’s site. Also note that your execution policy may be restricted by your security team or administrator via a GPO.
Install Update Manager Powershell Library
Download the snap-in from VMware.
- For our lab, we executed VMware-UpdateManager-Pscli-5.0.0-432001.exe.
- At the welcome screen, click Next.
- At the license screen, accept the license and click Next.
- At the Ready to Install screen, click Install.
- Click Finish.
- Open PowerCLI as an administrator.
- Execute Connect-VIServer -server vCenterAddress -user username -password password.
- Verify the installation by running Get-Command -PSSnapin VMware.VumAutomation.