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
    
  2. Download VMware.PowerCLI (Around 539MB) and store it in C:\Temp\PowerCLI
    Save-Module -Name VMware.PowerCLI -Path C:\Temp\PowerCLI
    
  3. 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

I will need to manually 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 

#Ignore the Selfsign Certificate warning when connecting to vSphere Host / vCenter
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore

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

Connect to vCenter / ESXi Host

Connect-VIServer -Server 192.168.1.161 -User 'root' -Password 'XXXXXX' -WarningAction SilentlyContinue

Leave a Comment