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.

Summary

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

52 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)

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

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

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

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

    Reply
  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\1.0.0.1\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
    nstallPackage

    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?

    Reply
  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=1.0.0.646, 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?

    Thanks
    Oli

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

    Reply
    1. Chris Weiss

      Thanks Chris! That was the solution…

      Reply
  10. Ed

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

    Reply
    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

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

    Reply
    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

      Reply
  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

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

      Reply
      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 ?

        Reply
  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?

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

      Reply
  14. Ytsejamer1

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

    Version Name Repository Description
    ——- —- ———- ———–
    6.5.4.7… 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\1.0.0.1\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\1.0.0.1\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

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

      Reply
  15. David Geiger

    Thanks for this, Kyle- super-helpful.

    Reply
  16. Martin

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

    Reply
  17. PrediksiLoket

    thanks alot.. lucky found this, its very helpful

    Reply
  18. Togel Online

    Really appreciate you sharing this blog article. Cool.

    Reply
  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?

    Reply
  21. Gymsoft

    Thanks easy install learn

    Reply
  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

    Reply
  24. nggrandong

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

    Reply
  25. pengeluaran sgp

    Thank’s Mate 😀 great tips, pengeluaran hk

    Reply
  26. Tol4d

    Is it stil update?

    Reply
  27. togel singapore

    is update still running for this one? pengeluaran sgp

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

    Reply
  29. barcatoto

    thanks very good blog

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

    Reply
  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

    Reply
  32. resulthasil

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

    Reply
  33. togel88

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

    Reply
  34. mukapoker

    mari bergabung bersama mukapoker situs poker terbaik 2019

    Reply
  35. Agen Poker M88

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

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

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

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

    Reply
  39. Pasaran Bola

    Education is very good and many knowledge

    Reply
  40. Hasilbertapa

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

    Reply
    1. Pion Poker

      Nice dude..

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

    Reply
  42. login dewa poker

    Kini semua orang sudah bisa memainkan poker online uang asli melalui link alternatif dewa poker Indonesia, yang dimana kami menyediakan permainan poker online yang terbaik di indonesia.

    Reply

Leave a Reply

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

*