vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
754 stars 603 forks source link

Cannot install VMware.vSphere.SsoAdmin v1.2.2 from PowerShell Gallery #426

Closed mc1903 closed 3 years ago

mc1903 commented 3 years ago

I get an "authenticode signature of the file 'VMware.vSphere.SsoAdmin.cat' is not valid" error.

Other VMware PowerShell Gallery modules (VMware.vSphereDSC, VMware.WorkloadManagement) install OK, so I don't think it's me.

Thanks.

PS C:\Users\Administrator> Install-Module -Name VMware.vSphere.SsoAdmin
PackageManagement\Install-Package : The module 'VMware.vSphere.SsoAdmin' cannot be installed or updated because the authenticode signature of the file 'VMware.vSphere.SsoAdmin.cat' is not valid.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS C:\Users\Administrator> $PSVersionTable

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

PS C:\Users\Administrator> 
dmilov commented 3 years ago

It's not you, the module is not signed with VMware certificate because it's opensourced. We'll address that with the next version. Until then Install-Module -Name VMware.vSphere.SsoAdmin -SkipPublisherCheck

dmilov commented 3 years ago

It's not you, the module is not signed with VMware certificate. We'll address that with the next version. Until then Install-Module -Name VMware.vSphere.SsoAdmin -SkipPublisherCheck

dmilov commented 3 years ago

The new version 1.2.3 on PSGallery solves this problem.