Home > Blogs > VMware PowerCLI Blog

Back to Basics: Part 1 – Installing PowerCLI

The “Back to Basics” (B2B) blog post series will be showing people new to PowerShell and PowerCLI how to get started, they will be an ongoing feature on the PowerCLI blog and will cover each aspect of managing your virtual infrastructure with PowerShell and PowerCLI.

To get us started we have gone back to the beginning – Installing PowerCLI.

PowerCLI is typically installed on a vSphere administrators Microsoft Windows based desktop system or anywhere where you may currently run the vSphere Client, PowerCLI will access the vSphere API in a similar way to the vSphere Client so the same ports and access rights are needed to your vCenter or vSphere host.

In order to support installing PowerCLI to a desktop system the following prerequisites software packages must be present:

· Windows .Net Framework 2.0 (3.5 latest SP Recommended)

· Windows PowerShell (V2 Recommended)

Windows PowerShell V2 is integrated with Windows 7 and Windows 2008 R2, previous operating systems such as Windows XP, Windows Vista, Windows 2008 (Non R2) and Windows 2003 are compatible with Windows PowerShell, this must be first downloaded and installed from the following website: http://support.microsoft.com/kb/968929

After checking all pre-requests’ are installed you must set the 'Execution Policy' of PowerShell to enable it to be able to run scripts. By default PowerShell is installed in secure mode, which will disable the running of scripts within PowerShell.

To change the 'Execution Policy' start a PowerShell session with Administrator Privileges:


From the Window's Start menu type 'PowerShell', once the PowerShell program is displayed on the start menu Right Click 'Windows PowerShell' and select 'Run as administrator'.

A PowerShell prompt will be started:


It is recommended that you read more about PowerShell's different execution policies, to find out more information about these and ensure you change this to the correct setting for your organization enter get-help about_Execution_Policies at the PowerShell prompt.

In this guide we will change the execution policy to RemoteSigned.

From the PowerShell prompt enter: Set-ExecutionPolicy RemoteSigned


You will then receive information about execution policies and a prompt asking you to confirm your action before changing the execution policy, enter Y at the prompt and press enter.

You will then be returned to the PowerShell prompt with the change being completed. Type Exit and press Enter to leave the PowerShell prompt, this will need to be completed for both 32bit and 64bit PowerShell sessions.

You will now be ready to install VMware vSphere PowerCLI.


Download the PowerCLI software to your workstation from the following URL: http://vmware.com/go/PowerCLI

Once the software has been downloaded, start the install by double clicking the PowerCLI exe file.


The installer will firstly notify you that the additional component 'VMware VIX' will be installed as part of the PowerCLI install, click OK.


If you have not yet set your execution policy correctly an information box will appear advising you that this will need to be set to RemoteSigned before PowerCLI will execute correctly. Click the Continue button.

If the execution policy is set correctly this box will not appear.

This will bring you to the Welcome screen:


The welcome screen will now be shown welcoming you to the install wizard for PowerCLI, click Next to continue.

This will bring you to the VMware Patents:


Click Next to continue. This will bring you to the License Agreement:


Select the option ‘I accept the terms in the license agreement’ & then click Next to continue.

This will bring you to the Destination Folder:


Select the drive you would like to install PowerCLI onto and the folder name or leave this set as the recommended path and click Next.

This will bring you to Ready to install:


Click Install to begin the Install of PowerCLI.

This will bring you to Installing VMware vSphere PowerCLI


Please wait while the installation completes.


When the install is successful, the Finish screen will be displayed. To complete the installation click Finish.

The PowerCLI installation will now be completed and on your desktop you will now have two icons, which allow you to launch PowerCLI, a 64 bit version and a 32 bit version.

On your start menu in the Start –> All Programs –> VMware -> VMware vSphere PowerCLI folder you will now have access to the following items:

  • VMware vSphere PowerCLI (32-Bit)
  • VMware vSphere PowerCLI
  • vSphere PowerCLI Admin Guide
  • vSphere PowerCLI Cmdlets Reference
  • vSphere SDK for .NET API Reference
  • vSphere SDK for .NET Dev Guide

It is highly recommended that you read the ‘vSphere PowerCLI Admin Guide’ as this will provide the fundamentals of both PowerCLI and PowerShell and will aid in the learning process when starting out with PowerCLI.

B2B Part 1 FAQs

Q. Can I install PowerCLI on my vCenter Windows Server ?

A. Yes but normally it will be installed on your management PC or a server specifically setup to run scheduled PowerShell tasks, keep in mind that complex scripts may cause high CPU and memory usage which could impact other running programs on the same computer.

Q. How do I find out more about the Execution Policy ?

A. You can read more about PowerShell's different execution policies and ensure you choose the correct setting for your organization by typing get-help about_Execution_Policies at the PowerShell prompt.

This entry was posted in Uncategorized on by .
Alan Renouf

About Alan Renouf

Alan Renouf is a Product Line Manager at VMware focusing on API’s, SDK’s and CLI’s, He is responsible for providing the architects and operators of private and public cloud infrastructure with the toolkits/frameworks and command-line interfaces they require to build a fully automated software-defined datacenter.

Alan is a frequent blogger at http://blogs.vmware.com/PowerCLI a book author and has a personal blog at http://virtu-al.net.

You can follow Alan on twitter as @alanrenouf.

25 thoughts on “Back to Basics: Part 1 – Installing PowerCLI

  1. Devin

    Thanks for the article. One thing on the set execution policy looks like you need to add ‘-force’ to force 32 and 64 bit. At least that is what I had to do.
    Set-ExecutionPolicy remoteSigned -Force

  2. Ganesh Satpute

    Can we install this using powershell? If yes what are the parameters to be passed. And example would be great 🙂

  3. Pingback: Enabling of ESXi host ssh service via vSphere PowerCLI | Tolga ASIK

  4. Pingback: Vmware Administrator |

  5. Ana

    Oder das Hinzufügen von 5-6 pro Woche, 10-20 Minuten am Ende jeder Trainingseinheit zu kämpfen der Mann kann nicht auf Erdnüsse zu leben.

  6. Pingback: How to - reset CBT on multiple virtual machines using PowerCLI

  7. Chad F

    Does installing the PowerCLI interact with my Virtual Center or VMware setup in anyway, or is it strictly the server?

  8. Steve T

    Why are the cmdlets for PowerCLI only available through the PowerCLI shortcut instance? I can’t use any of them in the ISE or a standard PowerShell prompt.

  9. Alan Renouf

    Steve, you can but you need to register them with your ISE or powershell, what version of PowerCLI do you have installed? with the latest version its as simple as:

    Get-Module -ListAvailable VMware* | Import-Module

  10. Dan Brown

    You just need to add something like this to the top of your Powershell script for it to use PowerCLI:

    # ——- PowerCLI Environment ——-

    . “C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1”

    And then use the connect cmdlet within your script to connect to your VM Host:

    # ——- Connection to VM Host ——-

    Connect-VIServer -Server -Protocol https -User testuser -Password testpassword

    Also, take a look at ‘Onyx’ for script creation, it saves a lot of time!

  11. Pingback: vmware ESXi 6.5 with custom NIC | Innovation & Multi-Tech - ASEAN

  12. Reed

    Compelling blurb: Make sure the description of your book is captivating to acquire
    a potential visitor. If you are using it for
    period of time consistently, yoou would surelly derive
    great outcomes.

  13. Pingback: 100% Pass Guarantee PassLeader 2V0-751 Dumps with VCE and PDF for Free (Question 10 – Question 18) | All PassLeader VMware Dumps with PDF and VCE for Free

  14. imgur.com

    Having read this I thought it was rather informative.
    I appreciate you taking the time and energy to put this content together.
    I once again find myself spending a lot of time both
    reading and commenting. But so what, it was still worth it!


Leave a Reply

Your email address will not be published. Required fields are marked *