Home VCAP-DCA 5 Install and configure vSphere PowerCLI 5.x

Install and configure vSphere PowerCLI 5.x

by admin

In order to install PowerCLI you need to have a supported version of .Net installed, a supported OS and a supported version of Powershell installed. You can read the release notes for PowerCLI here.

Installing PowerCLI

The installation itself is straight forward. Start by downloading and running the PowerCLI executable:

powercli_install

After the install begins you’ll be notified that ‘VMware VIX’ will be installed automatically:

vmware_vix

Followed by a warning regarding script execution policy:

powercli_execution_policy

The remainder of the install wizard will be familiar, with options to choose the install location, and whether you want to install the optional vCloud Director PowerCLI. Once ready, click finish to complete the install.

Configuring PowerCLI

On starting the application for the first time there will be a warning regarding script execution (you may need to run the application as Administrator, if there are any permissions errors):

powercli_remote_signed

To allow the VMware modules to run, type set-executionpolicy remotesigned:

powercli_remote_signed_error

Now exit the PowerCLI application then re-open it:

powercli_window

You can test it out by connecting to a host or vcenter server by running the following command – Connect-viserver servername then run another cmdlet such as get-vmhost.

 

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More