Home > Blogs > VMware PowerCLI Blog

PowerCLI 6.5.1 Installation Walkthrough

We released PowerCLI 6.5.1 two weeks ago and the response has been incredible! The VMware.PowerCLI module is closing in on 4,000 downloads from the PowerShell Gallery and we’ve received a ton of good feedback.

There seems to be quite a few questions and comments over this new installation method so I created a walkthrough video to illustrate the process for PowerShell version 5.0 as well as for versions 3.0 and 4.0. We’ve also collected the most common errors and issues during the installation process and included troubleshooting steps for those below.

Walkthrough Video

Common Troubleshooting Steps

If there happens to be an issue during the installation process, here’s a couple of the top tips we have seen on working around them:

  • The process cannot access the file ‘C:\Users\…\AppData\Local\Temp\…’
    • Ensure previous versions of PowerCLI are uninstalled and all PowerShell sessions are closed.
    • Verify the file isn’t being blocked by an antivirus software.
  • A command with name ‘verb-noun’ is already available on this system.
    • This is due to a module already available on the system containing that cmdlet. The more common example modules include FailoverClusters and HyperV.
    • Append “-AllowClobber” to the Install-Module command line.
      Example: Install-Module –Name VMware.PowerCLI –Scope CurrentUser –AllowClobber
  • No match was found for the specified search criteria and module name ‘VMware.PowerCLI’
    • This could be due to a lack of connectivity to the PowerShell Gallery.
    • If a proxy can be used, the “Install-Module” cmdlet can configure proxy connectivity with the “Proxy” and “ProxyCredential” parameters.
      Example: Install-Module –Name VMware.PowerCLI –Scope CurrentUser –Proxy ‘http://my.proxy.company.com’
  • Could not get response from query ‘https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Core/…’
    • This warning is just indicating there is an issue establishing connectivity to the PowerShell Gallery. Retry the installation at a later point in time and it should succeed.


We are really excited about this release and what this means for the future of PowerCLI! Upgrade to PowerCLI 6.5.1 today, and keep that feedback rolling in!

If you’re looking to install PowerCLI and don’t have direct internet access, use the following link: PowerCLI – Offline Walkthrough
If you’re looking to install PowerCLI on a MacOS based system, use the following link: PowerCLI – MacOS Installation Walkthrough

This entry was posted in General and tagged , on by .
Kyle Ruddy

About Kyle Ruddy

Kyle Ruddy is a Senior Technical Marketing Architect working for VMware R&D in the Cloud Platform Business Unit. Kyle currently focuses on vSphere and VMware Cloud on AWS automation and the associated automation frameworks including all things API, CLI, and SDK. Kyle is also a Microsoft MVP and long-term vExpert whom can be found blogging on VMware blogs, http://blogs.vmware.com/vSphere and http://blogs.vmware.com/PowerCLI, and his personal blog, https://www.kmruddy.com. His Twitter: @kmruddy

54 thoughts on “PowerCLI 6.5.1 Installation Walkthrough

  1. Rusty

    Hey that was really good, but what about non-internet connected servers that you might need to install PowerCLI on? (Off-line install)

    1. Gary

      At the moment there is no offline install, or at least that what it looks like.

      You can download the 6.5 Release 1 version from your my.vmware.com under any vSphere product via the Drivers and Tools Tab.

    2. Jake

      I was able to work around the offline install failure by copying the “C:\Program Files\WindowsPowerShell\Modules\VMware.*” folders from a machine that updated successfully.

  2. Pingback: VMware PowerCLI 6.5.1 Installation Walkthrough Video

  3. Omar alghali

    really thanks for the installation video. Definitely helped cleared up some technical misunderstanding on my part.

  4. Pingback: PowerCLI 6.5.1 Installation Walkthrough – Techilia

  5. Pingback: Creating shortcuts for PowerCLI that automatically log you in. | The Lowercase w

  6. Amit

    great video . I have successfully installed powerCLI 6.5.1 . Thanks for sharing with us .

  7. Terry Wrennall

    Still get the error

    WARNING: Package ‘VMware.VimAutomation.Core’ failed to download.
    PackageManagement\Install-Package : Dependent Package ‘VMware.VimAutomation.Core’ failed to install.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:2089 char:20
    + … $sid = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidResult: (VMware.VimAutomation.Core:String) [Install-Package], Exception
    + FullyQualifiedErrorId : DependentPackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.I

    multiple version of windows (10/2008r2/2012r2), multiple PS version (4/5/5.1), running elevated scope current user and all users
    Common thing en-NZ (or NOT en-US I guess)

    Any ideas?

  8. Oli

    Hello all,

    Having the Problem within loadin a dll/assembly, but its in the $env:PSModulePath

    PS H:\> Connect-VIServer -Server vciwtgd01
    Connect-VIServer : Could not load file or assembly ‘VMware.VimAutomation.Logging.SoapInterceptor, Version=, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
    At line:1 char:1
    + Connect-VIServer -Server vciwtgd01
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Connect-VIServer], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer

    There isnt alot to find by google with that error.
    Any ideas?


  9. Chris Smith

    Hi Oli. I was getting the same issue.. Until I remembered I needed to go to the control panel and uninstall the previous old vmware powercli that was installed using the old traditional setup.exe.. this resolved the error I was getting which is the exact same error your seeing on connecting to a vcenter.

    1. Chris Weiss

      Thanks Chris! That was the solution…

  10. Ed

    Received a Microsoft Visual C++ Runtime Library runtime error R6034 when attempting to install the vmware.powercli module.

    1. Kyle RuddyKyle Ruddy Post author

      Are you still having this issue?
      If so, make sure all prior versions of PowerCLI have been uninstalled. (If you uninstalled any previous version, might be worth rebooting as well)
      Try the ‘install-module -name vmware.powercli -scope currentuser’ command again.

      If you’re still having issues after that, please send me an email: kruddy at vmware dot com

  11. Chris

    It seems vmware is highly committed to this decision. Any complaints are met with “But the new way is better!”.

    Working in a disconnected, highly secure DoD environment makes this a no go for us. I shouldn’t have to try to find a way around security or download on my home computer to get my updates.

    Please swallow your pride and offer an msi in addition to the Gallery.

    1. Kyle RuddyKyle Ruddy Post author

      Chris: I’m not sure where you’re receiving the ‘the new way is better’ treatment, but myself and the the Product Manager have been more than happy to discuss this transition. We’d love to understand what complications this process is adding within your environment. Please drop me an email so we can discuss this further: kruddy at vmware dot com

  12. Jmont

    Great comment Chris . And that’s not all : Improvements (“better”) means you should’nt have this hassles . I’m not a advanced user and i need to strive to be at surface of all this Super(it)Mans coding people … what happened to kiss ? why a normal user has to suffer for the sake of this ? IT used to mean ‘simplification of processes’ … nowadays it means hours of lost work to retrieve solutions for small details . congrats

    1. Kyle RuddyKyle Ruddy Post author

      Can you expand on what you’re suffering with?

      With PowerCLI versions 6.5.1 and newer, the PowerCLI installation process was turning into a PowerShell one-liner. It doesn’t get much easier than that!

      1. Erik

        To bad the article itself does not clearly mention that one-liner 🙁 although there is some info in the Common Troubleshooting Steps.
        Why would you need a video to explain a PowerShell one-liner, and why is that video no longer there ?

  13. Ben Brouhard

    Hello, I can install and list all modules when I run with an elevated powershell users, but nothing when I run with a normal account. I tried to change the scope to allusers but nothing. What am I missing?

    1. Kyle RuddyKyle Ruddy Post author

      I haven’t been able to reproduce this, but you’re not the only one that has run into this issue. By any chance, have you tired ‘Install-Module -Name VMware.PowerCLI -Scope AllUsers -Force’ ?

      Perhaps the force parameter will kick things back into an operational manner for all users.

  14. Ytsejamer1

    This is frustrating – I can’t get it to install.
    § DESKTOP Find-Module -Name VMware.PowerCLI

    Version Name Repository Description
    ——- —- ———- ———–… VMware.PowerCLI PSGallery This Windows PowerShell module contains VMware.P…
    Good! Onto the next step

    § DESKTOP Install-Module -Name VMware.PowerCLI –Scope AllUsers -Force
    WARNING: Unable to resolve package source ‘https://www.powershellgallery.com/api/v2/’.PackageManagement\Install-Package : No match was found for the specified search criteria and module name ‘VMware.PowerCLI’. Try Get-PSRepository to see all available registered module repositories.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:1809 char:21
    + … $null = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (Microsoft.Power….InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

    Well, let me try again just to find the module

    § DESKTOP Find-Module -Name VMware.PowerCLI
    WARNING: Unable to resolve package source ‘https://www.powershellgallery.com/api/v2/’.PackageManagement\Find-Package : No match was found for the specified search criteria and module name ‘VMware.PowerCLI’. Try Get-PSRepository to see all available registered module repositories.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:1397 char:3
    + PackageManagement\Find-Package @PSBoundParameters | Microsoft …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (Microsoft.Power…ets.FindPackage:FindPackage) [Find-Package], Exception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage

    1. Ytsejamer1

      I’ve fixed my issue. I have a custom PS profile and environment variables. I was able to get this working by saving the VMware.PowerCLI packages locally, then copying the extracted folders underneath several of the $ENV:PSModulePath folders. I had three of them specified and as such, I copied three sets of the extracted folders.

      The little mention of AllUsers Module folder location pointed me to C:\Windows\System32\WindowsPowerShell\v1.0\Modules.
      The mention of CurrentUser Module folder location pointed me to my profile location\Modules – which was E:\path\My Documents\WindowsPowerShell\Modules
      Then of course, there’s another one under C:\Program Files\WindowsPowerShell\Modules…

      After that, I was able to install and import.

      On my other machine without customized PS profiles and locations, just using Microsoft’s default – the module installed fine from the repo.

  15. David Geiger

    Thanks for this, Kyle- super-helpful.

  16. Martin

    Thank you very much Sir, glad that i found this one

  17. PrediksiLoket

    thanks alot.. lucky found this, its very helpful

  18. Togel Online

    Really appreciate you sharing this blog article. Cool.

  19. Pingback: Creating and Adding Storage with Dell Storage Manager SDK and VMWare PowerCLI – TheVirtualHoard

  20. Mainpasti

    Hoe do i get more details about this?

  21. Gymsoft

    Thanks easy install learn

  22. Pingback: New Release: PowerCLI Preview for VMware Cloud on AWS – VMPRO.AT – all about virtualization

  23. data sgp master

    I thinkI feel I believe this is that is one of the among the so much such a lot most important significant vital information info for me. And i’mi am satisfied glad happy reading studying your article. However But wanna want to should observation remark statement commentary on few some general common basic normal things issues, The website siteweb site taste style is perfect ideal great wonderful, the articles is in point of fact actually reallyin reality truly excellent nice great : D. Just right Good Excellent task process activity job, cheers

  24. nggrandong

    Thank you Kyle, great tips, very helpfull for me, i’m waiting for another great post from you.

  25. pengeluaran sgp

    Thank’s Mate 😀 great tips, pengeluaran hk

  26. Tol4d

    Is it stil update?

  27. togel singapore

    is update still running for this one? pengeluaran sgp

  28. mamatogel

    hanks for every one of your effort on this web site. Betty really likes doing research and it is easy to see why. We know all concerning the dynamic medium you offer rewarding steps via the web site and in addition welcome response from the others on this article and my girl is in fact being taught so much. Enjoy the remaining portion of the new year. You’re the one carrying out a glorious job.

  29. barcatoto

    thanks very good blog

  30. pengeluaran togel

    togel online saat ini menjadi salah satu judi online yang paling diminati di indonesia. Salah satu yang memberikan dampak bagi perkembangan togel online adalah dengan hadirnya beberapa pasaran togel besar dunia seperti togel sgp, togel hk dan togel sidney. Pengeluaran togel pun menjadi informasi yang paling sering dicari oleh para pecinta togel online di indonesia.

  31. data sgp

    very good article ,,,, thank you to the admin who has given the opportunity to comment, keep the spirit of giving the best posts

  32. resulthasil

    Buruan bergabung di agen pilihan anda dan rebut banyak keuntungannya. Ingat anda hanya bisa judi togel

  33. togel88

    Dalam layanan bandar Judi togel terpercaya ini member bandar Judi togel terpercaya agen idnpoker

  34. mukapoker

    mari bergabung bersama mukapoker situs poker terbaik 2019

  35. Agen Poker M88

    you have a great post and i like it.. please join us at http://goopoker.com

  36. warungsoccer

    It’s a tremendous post. I am truly grateful for this blog and I was in fact looking for something impressive like this.

  37. faturaya kredi

    Faturaya kredi sisteminden şu an için faturalı hat sahipleri faydalanabilir. Operatör farkı olmaksızın birçok telefon bu sistemle satın alınabilir. İşlemleri ve başvuruları sadece Faturalı Hat Sahipleri yapabilir.

  38. Judi Bola Terbaik

    cool is very useful once dude information, I’m hoping for the same high-grade content by you later. Your article has truly peaked my interest. I will bookmark.

  39. Pasaran Bola

    Education is very good and many knowledge

  40. Hasilbertapa

    Great website and I look forward to seeing it improve over time.

    1. Pion Poker

      Nice dude..

  41. dewa poker qq

    Dewapoker Hadir untuk semua pecinta permainan kartu poker online yang khususnya berada di asia. Dengan system teknology baru dan server kecepatan tinggi akan membuat permainan poker anda lebih seru dan menarik bersama teman2x anda maupun saingan anda.

  42. situs bola indonesia


    sportsbook and casino online is a gambling game that is still very global today.
    so,please come and join with us at :

  43. hoya.jp.net

    I want to say that this post is awesome, nice written and include almost all important information. I would like to peer more posts like this.

  44. Norton.com/setup

    Norton.com/setup programming appeared as a match and big programming which can comprehend and void such Malware and Threats. Users themselves share an enormous amount of societal malware, thus always be wary of any connections that Norton protect your threats.


Leave a Reply

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