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.


309 comments have been added so far

  1. 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. Can we install this using powershell? If yes what are the parameters to be passed. And example would be great 🙂

  3. 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.

  4. 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

  5. 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!

  6. 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.

  7. 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!

  8. Hey !
    I have a question regarding VMware that is If I had a running VCF deployment with multiple workloads already deployed on this from vRA and wanted to move all these to a new VCF implementation, how easy would this be?
    My main concern is around all the workloads which have been deployed using vRA, if I shift them to an entirely new vRA instance on the new VCF will this be a world of pain?

  9. What is Norton? Norton is an anti-virus and anti-malware software which offers various products related to digital security. It is an industry-leading software which is reputed for its real-time protection and various comprehensive features. It helps in securing your device with ultimate protection from existing and emerging security risks. For utmost protection, Norton uses six

  10. What is MS office? Microsoft office provides a complete package of various applications that are used by businesses, educational institutions and homes. It comprises a large number of products for various purposes. It includes Microsoft Office, Excel, Powerpoint that is used to create spreadsheets, make labels and produce presentations for your home or office.

    1. That shouldn’t be the case.

      The easiest way to remedy this is to uninstall your current version of PowerCLI and install it from the PowerShell Gallery, as shown in the following video: https://www.youtube.com/watch?v=r2vi78DWkLQ

      If that doesn’t work in your environment, try the offline install: https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html

      In the end, the key is getting the PowerCLI modules directories in one of the directories listed in the $PSModulePath variable.

  11. I have read your article, it is really interesting and has lots of useful information. I also recommend it to friends so they can read it and they see the same thing

  12. This blog is really big and great source for information. We can all contribute and benefit from reading as well as gaining knowledge from this content just amazing experience.

    1. Are You looking the solution to solve your printer problems? Here you will get all the printer related issues for all HP models. We also provide you wireless printer setup help and driver installation

  13. Mcafee.com/activate – The web-based application and websites attract numerous malicious content to the device, and they affect the whole of your data and the smooth functioning of the system. It is due to harmful or inferior elements that come in the shape of viruses, spyware, malware, and some other harmful data. To protect these malicious and dangerous things, people need something that prevents these dangerous elements. Then comes the antiviruses, and among them, the most powerful is McAfee that helps the user to scan their device and removes all the malicious contents from the system.

  14. Situs Judi online merupakan taruhan yang biasanya dilakukan melalui internet secara online. Dengan media komputer, smartphone dan tablet atau biasa disebut judi daring di tanah air kita. Beberapa

  15. Are you looking someone who can repair your laptop / PC online? Don’t have enough time to take your damaged laptop to the nearest service center? If yes, then don’t worry…Geeks for Tech is here to help you. We can fix your PC by taking it on remote. Geek customer service

  16. Immediately you will get your fingers on the internet searching for Plumbers Near Me. No matter whatever your need is, our technicians are always well equipped to get your jobs done.

  17. Just give us a call and we will get you the services of the best Plumbers in Connecticut and best of all these plumbers will arrive at your doorstep even sooner the click baits you get when you search “Plumbers Near Me”.

  18. Honestly speaking you did lots of effort to write this content and it shows, The way you describe thing with images is also very attractive keep it up.

  19. Your blog website provided us with useful information to execute with. Each & every recommendations of your website are awesome. Thanks a lot for talking about.

  20. When I begin to figure on my Epson printer, I’m receiving Epson printer error 0x97. This error code is an indoor hardware issue that takes place within the Epson printers. This error 0x97 displays on the LCD screen of the printer. I’m putting my knowledge to seek out the most causes of Epson 0X97 Fix Patch. I feel that motherboard failure will be the most reason of this error, hence I would like to require specialized technical help from printer experts. Could you recommend the permanent methods to unravel this error code?

  21. If you do not want to put a large monetary investment into your online business, consider playing matka game. Basically, play matka game at a rock bottom price. From there, sell it for a profit. Remember, though, to do your research and figure out which domain names are in demand. Thanks Satta Matka

  22. Do you want to connect your Alexa device with SiriusXM? Don’t know how to do it? If yes, then you have reached to the right place. Alexa Helpline consists of well educated and expert technicians who can provide you proper information. Alexa Helpline

  23. Are you getting Echo red Ring of death on your Echo device? Don’t know what does it means and how to fix it? If yes, then Don’t look further than Echo Helpline. Echo Helpline is a group of expert technicians who can fix your Echo device’s error in a short span of time. Echo Helpline Numbers

  24. Deciding to participate the services of the maid is usually trying sufficient, but that’s only the beginning. Following your final decision to employ a house maid, you then have to be very cautious about deciding on the best service supplier.

  25. Is your device shows Roku Error Code 018? Are you looking for Roku helpline number for instant solution? Don’t get panic. Just grab your phone and dial Roku helpline number for instant solution. Get in touch with us.

  26. My brother recommended I may like this web site. He was entirely right.
    This submit actually made my day. You cann’t consider just how so much time
    I had spent for this information! Thanks!

  27. Halo, perkenalkan nama saya Sunano admin dari Masterpulsa8, mau mengajak teman teman join server pulsa online.
    Kami menyediakan berbagai pulsa online elektrik maupun voucher data, tokan pln juga Voucher game.

  28. Halo, I’m Wijaya Liu living in Kuta Bali Indonesia.
    I’m chef in hotel BSO118 Siejie Online. I like travel and food. My favorite food was nasi pedas.

  29. Thanks for sharing this useful information with us. These steps would be really helpful I’m really glad that I came across your article. Learning a lot from here. Keep us updated.

  30. Your way of working is very interesting and amazing. I really like it very much. I want more similar topics about this post to increase our knowledge. Thanks for sharing and keep sharing. Know about Garmin.com/Express.

  31. Hallo, Selamat datang di profile saya. Perkenalkan nama saya adalah Felicia. Saat ini saya berumur 22 tahun. Saya sangat hobi bermain musik, alat musik favorite saya adalah piano, dan saya juga hobi bermain judi slot online di IDNSCORE

  32. Hello, my name is Valerie. Right now my job is manager marketing in famous judi slot online. Named IDCASH88, if u interested to play slot online u can try in there!

  33. First of all I am very thank full to the writer who present this in a nice way. This article in more attractive when going through all topic. Writing skill is most important thing to tell your experience about any thing. Let me share something which I found on internet and I guarantee you never deny this in term of profit. Visit here Online Matka for more information. Its totally verified and short term earning money process. So please don’t hesitate to asking question. Contact number shows on website, make a call and win.

  34. सर्वश्रेष्ठ सट्टा मटका दुनिया में आपका स्वागत है। अब आप तेजी से मटका परिणाम बाबा सट्टा मटका दुनिया के साथ प्राप्त कर सकते हैं, यहां हमारे पास मटका विश्व अनुमान, सट्टा बट्टा, कल्याण सट्टा, मटका जोड़ी फिक्स है। आज ही अपना तेज़ मटका टिप्स प्राप्त करें। हम बहुत अच्छी तरह से मटका दुनिया नहीं 1 और मटका दुनिया के लिए दृष्टिकोण नहीं 2. हम सत्ता बाजार और में सबसे अच्छा कर रहे हैं है kalyanmatkatips है मटका खेल में सबसे अच्छा। आप मुंबई मटका परिणाम जीतने के लिए मटका नंबर को ठीक कर सकते हैं। हमारे पास satta दुनिया में सर्वश्रेष्ठ नाम है। आप हमेशा * कल्याणमत्किट्स के साथ जीत सकते हैं।

  35. La panificadora se encarga de la elaboración completa del pan, por lo que tú solo debes colocar los ingredientes en la cubeta y programarla. En unas 3 horas, ¡tendrás un pan casero recién hecho! En el programa de pan normal, la panificadora sigue este proceso: … Segundo amasado: la panificadora vuelve a amasar la masa. Visita Este sitio y encuentra las mejores panificadoras caseras

  36. First of all I am very thank full to the writer who present this in a nice way. This article in more attractive when going through all topic. Writing skill is most important thing to tell your experience about any thing. Let me share something which I found on internet and I guarantee you never deny this in term of profit. Visit here Matka Play for more information. Its totally verified and short term earning money process. So please don’t hesitate to asking question. Contact number shows on website, make a call and win.

  37. IDCash88 Merupakan Situs Judi Online & Situs Sports Slots Live Casino IDN Poker IDN Live Terbaik dan Terpercaya, idcash88 merupakan Situs judi online ataupun Situs Sports Slots Live Casino IDN Poker IDN Live yang sangat Fair play, idcash88 menyediakan 7 Permainan antara lain yaitu adalah Sports, Slots, Live Casino, IDN Poker, IDN Live, Dengan Sistem keamanan yang sangat Terbaik dan Terbaru, Serta Server Respons yang Sangat Cepat, Permainan anda Tentunya akan Lebih Nyaman dan Menyenangkan itu semua membuat anda sangat Betah Bermain di Situs idcash88 ini. Maka dapat dipastikan game idcash88 situs Sports Slots Live Casino IDN Poker , IDN Live sangat mudah sekali dimainkan.

  38. Without WiFi Alexa device is just like a bluetooth speaker! SO if your Amazon Alexa is not connecting to WiFi then you need an expert technician’s help instantly. So that you could enjoy your Alexa device asap. Alexa Helpline is a group of expert technicians who can fix your Alexa device in a short span of time. Alexa App Helpline

  39. Is your bluetooth speaker not working? Getting worried about that? If yes, then don’t look further than Geeks for Tech. We have a team of expert and professional technicians who can fix your speakers in a short span of time. Geek Squad

  40. Better shower heads can make your bath very comfortable. So are you thinking of upgrade of your old shower heads with the new one? If yes, then don’t look further than NZHomeware. We provide you a wide range of bathroom accessories like, taps, tapware, shower, shower heads, toilets and sinks etc. For more information, visit our website now!

Leave a Reply

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