Automation

 View Only
Expand all | Collapse all

No snap-in is registered for Windows PowerShell version 5

  • 1.  No snap-in is registered for Windows PowerShell version 5

    Posted Aug 08, 2017 10:16 AM

    I have a PC running Windows 10 and I use PowerShell v.5 to connect to a vSphere 5.5 infrastructure.

    When I start a PowerShell script that attempts to execute the Add-PSSnapin VMware.VimAutomation.Core command I get an error saying that no snap-in is registered for Windows PowerShell version 5.

    How can I solve the problem?

    Regards

    marius



  • 2.  RE: No snap-in is registered for Windows PowerShell version 5
    Best Answer

    Posted Aug 08, 2017 10:22 AM

    Which PowerCLI version do you have installed?

    In the latest PowerCLI version there are no PSSnapin anymore.

    You can check the PowerCLI version via the Programs And Features Control Panel applet.

    If it says 6.5.0 or higher, you can do (instead of the Add-PSSnapin)

    Get-Module -Name VMware* -ListAvailable | Import-Module



  • 3.  RE: No snap-in is registered for Windows PowerShell version 5

    Posted Sep 01, 2017 08:14 AM

    Many, many thanks!

    Mario



  • 4.  RE: No snap-in is registered for Windows PowerShell version 5

    Posted Dec 10, 2020 10:53 PM

    you're a lifesaver, thx very much