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!

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

About Kyle Ruddy

Kyle Ruddy is a Senior Technical Marketing Engineer at VMware in the Cloud Platform Business Unit. Kyle currently focuses on vSphere with Operations Management as well as all things API, SDK, and CLI. Kyle can be found blogging on VMware blogs, http://blogs.vmware.com/vSphere and http://blogs.vmware.com/PowerCLI, and his personal blog, http://www.thatcouldbeaproblem.com. You can follow Kyle on twitter as @kmruddy.

11 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. Pingback: PowerCLI 6.5.1 Installation Walkthrough – Techilia

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

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

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


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


Leave a Reply

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