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:

clip_image002

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:

clip_image004

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

clip_image006

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.

clip_image008

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.

clip_image009

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

clip_image011

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:

image

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:

clip_image015

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

clip_image017

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

This will bring you to the Destination Folder:

clip_image019

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:

clip_image021

Click Install to begin the Install of PowerCLI.

This will bring you to Installing VMware vSphere PowerCLI

clip_image023

Please wait while the installation completes.

image

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.

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

  1. chopper

    dude you didn’t bother to explain how to actually launch a powercli script or save it etc!! weak!

    Reply
  2. 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

    Reply
  3. Ganesh Satpute

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

    Reply
  4. amar

    How can I install the PowerCLI though command prompt, I mean without GUI.

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

  6. Frieda

    Studien zeigen, dass selbst im Alter aufgenommene körperliche Aktivität die
    Sterblichkeit senken kann.

    Reply
  7. Pingback: Vmware Administrator |

  8. Suche Hautarzt

    Da die wertvollsten Bestandteile im Keimling und in den Randschichten sitzen, sind
    Brote und Nudeln aus Vollkornmehl am gesündesten.

    Reply
  9. Maple

    Zwar schicken zwei Drittel (67,7 Prozent) der Manager ihre Mitarbeiter
    zum Auskurieren nach Hause, wenn diese krank im Büro
    erscheinen.

    Reply
  10. 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.

    Reply
  11. gesunde ernährung rezepte app

    PS: Im Januar beschäftigen wir uns im beVegungs-Programm
    ganz intensiv mit dem Thema Bewusst essen und trinken”.

    Reply
  12. simluck4.snappages.com

    Tom L. aus Hamburg (04.12.2013): Habe momentan zu viel
    Angespanntheit im Job, daher schwankt mein Blutdruck sehr.

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

  14. Chad F

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

    Reply
  15. 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.

    Reply
  16. 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

    Reply
  17. 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 10.0.0.0 -Protocol https -User testuser -Password testpassword

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

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

  19. test

    Very rapidly this web site will be famous amid all blog people, due to
    it’s good articles or reviews

    Reply
  20. Sergio

    Bum Marketing And Massive Article Marketing

    Reply
  21. T.J.

    Alan,

    For a new person to VMware, this is GREAT documentation! It helped me a LOT!

    Thank you,

    T.J.

    Reply
  22. 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.

    Reply
  23. 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

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

    Reply
  25. Long Island Divorce Attorney

    Thank you a lot for sharing this with all
    of us you actually know what you’re talking about! Bookmarked.
    Kindly additionally discuss with my web site =). We will have
    a link change contract among us

    Reply
  26. Pingback: [March 2018] Lead2pass VMware New Exam 2V0-751 VCE Files Free Instant Download 115q | Lead2pass Offers New Updated IT Exam Dumps Permanently

  27. Pingback: [March 2018] New Lead2pass 2V0-751 Dumps PDF Version Released For Free Downloading 115q | VCE And PDF Dumps Of Lead2pass

  28. Pingback: [March 2018] 100% Valid Lead2pass VMware 2V0-751 New Questions Free Version 115q | Lead2pass New Updated IT Exam Questions

  29. Pingback: [March 2018] 2018 Latest Lead2pass 2V0-751 Questions & Answers PDF Free Download 115q | Lead2pass New Updated IT Exam Questions

  30. Pingback: [March 2018] 2018 VMware 2V0-751 Dumps Free Download 100% Pass Promised By Lead2pass 115q | 100% New Updated IT Exam Questions

  31. Pingback: [March 2018] 2018 New Lead2pass VMware 2V0-751 Dumps Free Download 115q | New Updated Lead2pass Exam Collection

  32. Pingback: [March 2018] Lead2pass 2V0-751 Exam Dumps New Updated By VMware Official Exam Center 115q | Lead2pass All Latest Exam Questions

  33. Pingback: [March 2018] 2V0-751 Exam Questions Free Download From Lead2pass 115q | Latest Lead2pass Exam Dumps

  34. Pingback: [March 2018] Easily Pass 2V0-751 Exam By Training Lead2pass Latest VCE Dumps 115q | Free Sharing Lead2pass Exam Collection

  35. Pingback: [March 2018] Download Free VMware 2V0-751 Exam Questions And Answers From Lead2pass 115q | 100% Pass with Lead2pass Exam Questions

  36. Pingback: [March 2018] Free Download Of Lead2pass 2V0-751 Real Exam Questions 115q | 100% Free Lead2pass Exam Dumps Download

  37. Pingback: [March 2018] Free Lead2pass VMware 2V0-751 PDF Dumps With New Update Exam Questions 115q | 100% Valid Exam Dumps on Lead2pass

  38. Pingback: [March 2018] Free Share Of Lead2pass 2V0-751 VCE And PDF Dumps 115q | 100% Free Lead2pass Practice Test Download

  39. Pingback: [March 2018] Free Sharing Of Updated 2V0-751 VCE And PDF Dumps From Lead2pass 115q | 100% Pass IT Exam By Training Lead2pass New VCE And PDF Dumps

  40. Pingback: [March 2018] Free Lead2pass VMware 2V0-751 PDF Exam Questions And Answers Download 115q | Lead2pass New Updated IT Exam Questions

  41. Pingback: [March 2018] Free Version Lead2pass VMware 2V0-751 PDF Dumps With Exam Questions Download 115q | New Lead2pass VCE And PDF Free Instant Download

  42. Pingback: [March 2018] Free Lead2pass VMware 2V0-751 Dumps VCE Download 115q | New Lead2pass PDF And VCE Ensure IT Exam Pass 100%

  43. Pingback: [March 2018] Lead2pass 2V0-751 Exam Questions Guarantee 2V0-751 Certification Exam 100% Success 115q | New Lead2pass Practice Test Free Download

  44. Pingback: [March 2018] Lead2pass Free VMware 2V0-751 Braindumps VCE Updated 115q | Free Download Lead2pass VCE And PDF Dumps

  45. Pingback: [March 2018] Lead2pass Latest 2V0-751 PDF Guarantee 100% Pass 2V0-751 Exam 115q | Lead2pass 100% Valid Exam Questions PDF Free Download

  46. Pingback: [March 2018] Lead2pass 2018 100% Real 2V0-751 Exam Questions 115q | Lead2pass Dumps

  47. Pingback: [March 2018] Lead2pass Latest VMware 2V0-751 Exam Questions Free Downloading 115q | Latest Dumps PDF Free Download In Lead2pass

  48. Pingback: [March 2018] Lead2pass Provides Latest Exam 2V0-751 Dumps VCE For Free Downloading 115q | Quickly Pass Test With Lead2pass New Brain Dumps

  49. Pingback: [March 2018] Lead2pass Offering Free 2V0-751 Dumps Files For Free Downloading By 2V0-751 Exam Candidates 115q | Ensure Pass IT Exam By Training Lead2pass New VCE And PDF Dumps

  50. Pingback: [March 2018] Latest 2V0-751 Dumps PDF Free Download In Lead2pass 100% 2V0-751 Exam Pass Guaranteed 115q | Updated Study Materials From Lead2pass Free Downloading

  51. Pingback: [March 2018] Latest Released VMware 2V0-751 Exam Question Free Download From Lead2pass 115q | Exam Dumps Free Download In Lead2pass 100% Real Questions

  52. Pingback: [March 2018] VMware 2V0-751 Latest Dumps Free Download From Lead2pass 115q | Best Lead2pass PDF Dumps With New Update Exam Questions

  53. Pingback: [March 2018] Lead2pass VMware 2V0-751 Exam Dumps Free Download 115q | New Lead2pass Dumps PDF Version Released For Free Downloading

  54. Pingback: [March 2018] Lead2pass New Updated 2V0-751 Braindump Free Get 115q | Free Lead2pass Dumps VCE

  55. Pingback: [March 2018] Lead2pass 2V0-751 New Questions For Passing The 2V0-751 Certification Exam 115q | Lead2pass Dumps For Exam With New Updated Exam Questions

  56. Pingback: [March 2018] 2V0-751 Latest Dumps Free Download From Lead2pass 115q | Exam PDF Free Instant Download From Lead2pass

  57. Arshif Sheikh

    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?

    Reply
  58. McAfee.com/activate

    McAfee.com/Activate – Enter 25 Digits Alpha-Numeric McAfee Activate Product Key at http://www.mcafee.com/activate. Get Started with McAfee Activation Today!

    Reply
  59. PlayStation Customer Support

    This is the PlayStation Support only for Australia based. If you have PlayStation and warm of new games like 007 Racing, The World Is Not Enough, Afraid Gear, All Star Boxing and you have an problem with this then you can dial our toll-free number 1-800-764-852. We have the special team for all types plantation query like a methodological issue and dangling, fixing issue. We are cost nominal with all PlayStation Customer Support Australia.

    Reply

Leave a Reply

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

*