Install and configure vSphere PowerCLI 5.0

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

  1. Execute the installer. In our lab, we are ran VMware-PowerCLI-5.0.1-581491.exe.
  2. If warned about VIX, click OK to continue.
  3. At the welcome screen, click Next.
  4. At the patent screen, click Next.
  5. At the license screen, accept the license and click Next.
  6. At the Destination folder screen, optionally change the location of the installation and then click Next.
  7. At the Ready to Install screen, click Install.
  8. Click Finish.

Initial Execution of PowerCLI

  1. From Start, search for PowerCLI and right click to run as an administrator
  2. 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.

  1. For our lab, we executed VMware-UpdateManager-Pscli-5.0.0-432001.exe.
  2. At the welcome screen, click Next.
  3. At the license screen, accept the license and click Next.
  4. At the Ready to Install screen, click Install.
  5. Click Finish.
  6. Open PowerCLI as an administrator.
  7. Execute Connect-VIServer -server vCenterAddress -user username -password password.
  8. Verify the installation by running Get-Command -PSSnapin VMware.VumAutomation.
  1. Leave a comment

Leave a comment