Book Image

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
Book Image

Learning PowerCLI for VMware VSphere

By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Downloading and installing PowerCLI


Before you can install PowerCLI, you have to download the PowerCLI installer from the VMware website. You will need a My VMware account to do this.

Downloading PowerCLI

Perform the following steps to download PowerCLI:

  1. Visit http://www.vmware.com/go/powercli. On this page, you will find a Resources section.

  2. Click on the vSphere PowerCLI 5.5 link in the Resources section to go to the download page.

  3. Click on the Download button to download PowerCLI.

  4. You have to log in with a My VMware account. If you don't have a My VMware account, you can register for free.

  5. After you log in, you will be taken to the vSphere PowerCLI 5.5 download page. Click on the Download Now button to start downloading PowerCLI.

  6. You have to agree to and accept the terms and conditions outlined in the VMware End User License Agreement. Check the tick box in front of I agree to the terms and conditions outlined in the End User License Agreement and click on Accept to download the PowerCLI installer.

  7. Save the PowerCLI installation file on your local hard disk.

Installing PowerCLI

Perform the following steps to install PowerCLI:

  1. Run the PowerCLI installer that you just downloaded.

  2. Click on Yes in the User Account Control window to accept the Do you want to allow the following program to make changes to this computer? option.

  3. PowerCLI requires VMware Remote Console Plug-In and VMware VIX to be installed on your computer. Click on Install to install these products.

  4. Click on Next on the Welcome to the InstallShield Wizard for VMware vSphere PowerCLI window.

  5. Select I accept the terms in the license agreement and click on Next.

  6. If you are using VMware vCloud Director, you can select This feature will be installed on local hard drive for vCloud Director PowerCLI. (If you want, you can change the installation directory by clicking on Change....) Click on Next.

  7. Click on Install to begin the installation.

  8. Click on Finish to exit the installation wizard.

After installing PowerCLI, you will have a VMware vSphere PowerCLI icon on your desktop. If you installed PowerCLI on a 64-bit computer, you will also have a VMware vSphere PowerCLI (32-Bit) icon. Some PowerCLI commands only work in the 32-bit version of PowerCLI. So install both versions.

Besides starting PowerCLI from the icon on your desktop, you can also start PowerCLI from the Start menu. Go to All Programs | VMware | VMware vSphere PowerCLI to launch VMware vSphere PowerCLI or VMware vSphere PowerCLI (32-Bit).

When you start PowerCLI, you will get the following screen:

If you didn't get the text from the screenshot but got some red error messages saying that files cannot be loaded because running scripts is disabled on this system , read the following section to solve this problem. The following screenshot shows the error message that will be displayed: