Highlighted
Enthusiast
Enthusiast

The module 'VMware.VimAutomation.Sdk' cannot be installed because the catalog signature in 'VMware.VimAutomation.Sdk.cat' does not match the hash generated from the module.

Unable to install VMware.PowerCLI module getting error as

PS C:\> Install-Module -name vmware.powerCLI -scope CurrentUser -Force -allowclobber
PackageManagement\Install-Package : The module 'VMware.VimAutomation.Sdk' cannot be installed because the catalog
signature in 'VMware.VimAutomation.Sdk.cat' does not match the hash generated from the module.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1661 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : InvalidCatalogSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.Packag
   eManagement.Cmdlets.InstallPackage

My Powershell version details are as below.

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.0
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.0
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

0 Kudos
3 Replies
Highlighted
User Moderator
User Moderator

You seem to be using a rather old PowerShellGet module (1.0.0.1).
I suggest upgrading that module (and possibly the PackageManagement module as well) first.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Highlighted
Enthusiast
Enthusiast

Thank you Very much LucD. I ran the below commands and was able to update PowerShellGet and PackageManagement modules.

Install-Module -name PackageManagement -force -skippublishercheck;
Install-Module -name PowershellGet -force -SkipPublisherCheck;

0 Kudos
Highlighted
Enthusiast
Enthusiast

The issue is resolved now.
0 Kudos