Install PowerCLI 10 on Windows 10

Please refer to the steps below on how to Install PowerCLI 10 on Windows 10

  1. Set the Execution Policy to RemoteSigned
Set-ExecutionPolicy RemoteSigned
#Install NuGet
Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force
  1. Download VMware.PowerCLI (Around 360MB) and store it in C:\Temp\PowerCLI
Save-Module -Name VMware.PowerCLI -Path C:\Temp\PowerCLI
  1. It will take few minutes to complete depending on your Internet Bandwidth

You will get the error message below when you execute "Install-Module VMware.PowerCLI"

Install-Module Vmware.PowerCLI -Force
PackageManagement\Install-Package : The module 'VMware.VimAutomation.Common' cannot be installed because the catalog signature in 'VMware.VimAutomation.Common.cat' does not match the hash 
generated from the module.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InvalidCatalogSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
  1. i have to copy all downloaded module to PowerShell Module to make it works
#Copy Downloaded PowerCLI Module to $psHome\Module
Copy-Item -Recurse C:\Temp\PowerCLI\* -Destination C:\Windows\System32\WindowsPowerShell\v1.0\Modules 

#Import VMware Module
Import-Module VMware.VimAutomation.Core

#Ignore the Selfsign Certificate warning when connecting to vSphere Host / vCenter
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
  1. Connect to vCenter / ESXi
Connect-VIServer -Server 192.168.1.161 -User 'root' -Password 'XXXXXX' -WarningAction SilentlyContinue

Updated – Running PowerCLI 11.5 on PowerShell Core 7 RC2

Copy the Downloaded PowerCLI 11.5 to C:\Program Files\WindowsPowerShell\Modules\

Copy-Item -Recurse C:\Temp\PowerCLI\* -Destination "C:\Program Files\WindowsPowerShell\Modules\"

It seem like it is functioning well in PS Core 7 RC2 environment without any issue.

Leave a Comment

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

Scroll to Top