Today, I wanted to update my powercli package, but the process ended with the error below. Would you have any idea of the problem, because my searches on the internet were unsuccessful.
PS D:\> Update-Module -Name VMware.PowerCLI
PackageManagement\Install-Package : Authenticode issuer 'System.Object[]' of the new module 'VMware.VimAutomation.Sdk' with version '10.1.0.8342078' is not matching with the authenticode issuer
'System.Object[]' of the previously-installed module 'VMware.VimAutomation.Sdk' with version '1.0.0.5334677'. If you still want to install or update, use -SkipPublisherCheck parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2052 char:20
+ ... $sid = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : AuthenticodeIssuerMismatch,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Thanks,
I finally reinstall the latest version because the update did not want to work.
If you have another solution, I'm interested.
PS D:\> Install-Module -Name VMware.PowerCLI -SkipPublisherCheck
WARNING: La version 6.5.4.7155375 du module VMware.PowerCLI est déjà installée dans D:\USERS\kalifatd\Documents\WindowsPowerShell\Modules\VMware.PowerCLI\6.5.4.7155375
. Pour installer la version 10.1.0.8346946, exécutez la commande Install-Module et ajoutez le paramètre -Force. Cette commande va installer à la fois la version 10.1.0
.8346946 et la version 6.5.4.7155375.
PS D:\> install-Module -Name VMware.PowerCLI -Force
PackageManagement\Install-Package : Authenticode issuer 'System.Object[]' of the new module 'VMware.VimAutomation.Sdk' with version '10.1.0.8342078' is not matching
with the authenticode issuer 'System.Object[]' of the previously-installed module 'VMware.VimAutomation.Sdk' with version '1.0.0.5334677'. If you still want to
install or update, use -SkipPublisherCheck parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : AuthenticodeIssuerMismatch,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS D:\> Install-Module -Name VMware.PowerCLI -SkipPublisherCheck -Force
PS D:\> get-module -ListAvailable "VMware.PowerCLI" | select version
Version
-------
6.5.4.7155375
10.1.0.8346946
I finally reinstall the latest version because the update did not want to work.
If you have another solution, I'm interested.
PS D:\> Install-Module -Name VMware.PowerCLI -SkipPublisherCheck
WARNING: La version 6.5.4.7155375 du module VMware.PowerCLI est déjà installée dans D:\USERS\kalifatd\Documents\WindowsPowerShell\Modules\VMware.PowerCLI\6.5.4.7155375
. Pour installer la version 10.1.0.8346946, exécutez la commande Install-Module et ajoutez le paramètre -Force. Cette commande va installer à la fois la version 10.1.0
.8346946 et la version 6.5.4.7155375.
PS D:\> install-Module -Name VMware.PowerCLI -Force
PackageManagement\Install-Package : Authenticode issuer 'System.Object[]' of the new module 'VMware.VimAutomation.Sdk' with version '10.1.0.8342078' is not matching
with the authenticode issuer 'System.Object[]' of the previously-installed module 'VMware.VimAutomation.Sdk' with version '1.0.0.5334677'. If you still want to
install or update, use -SkipPublisherCheck parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : AuthenticodeIssuerMismatch,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS D:\> Install-Module -Name VMware.PowerCLI -SkipPublisherCheck -Force
PS D:\> get-module -ListAvailable "VMware.PowerCLI" | select version
Version
-------
6.5.4.7155375
10.1.0.8346946
Hi David,
if you currently have PowerCLI 6.5 installed and want to upgrade to PowerCLI 10.x then you should uninstall version 6.5 first.
After that installation of version 10.x (and future updates) should work fine.
Andreas