Install-Module VMware-PowerCLI fails 'VMware.VimAutomation.Sdk.cat' is not valid

 Error:

Install-Module VMware.PowerCLI -Scope CurrentUser

PackageManagement\Install-Package : The module 'VMware.VimAutomation.Sdk' cannot be installed or updated because the

authenticode signature of the file 'VMware.VimAutomation.Sdk.cat' is not valid.

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],


Solution:

Run below command to install module

install-module vmware.powercli -scope AllUsers -force -SkipPublisherCheck -AllowClobber



No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...