VMware Cloud Community
chrischrischris
Enthusiast
Enthusiast

Having trouble installing PowerCLI -- any help you could give would be greatly appreciated.

Hi all,

I'm having trouble installing PowerCLI -- any help you could give would be greatly appreciated.

PS > Set-ExecutionPolicy Unrestricted -force

PS > $PSVersionTable

Name                           Value

----                           -----

PSVersion                      5.1.14409.1005

PSEdition                      Desktop

PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}

BuildVersion                   10.0.14409.1005

CLRVersion                     4.0.30319.42000

WSManStackVersion              3.0

PSRemotingProtocolVersion      2.3

SerializationVersion           1.1.0.1

PS > Install-Module -Name VMware.PowerCLI

Untrusted repository

You are installing the modules from an untrusted repository. If you trust this repository, change its

InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from

'PSGallery'?

[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

PackageManagement\Install-Package : Unable to read file

C:\Users\chrischrischris\AppData\Local\Temp\70828642\VMware.VimAutomation.Storage\VsanService65.dll to calculate its hash.

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 : UnableToReadFileToHash,Microsoft.PowerShell.Commands.TestFileCatalogCommand,Microsoft.Po

   werShell.PackageManagement.Cmdlets.InstallPackage

0 Kudos
9 Replies
nicholas1982
Hot Shot
Hot Shot

Try      Get-Module -ListAvailable

Nicholas
0 Kudos
LucD
Leadership
Leadership

Are you behind a proxy?

Try adding the Verbose switch on the Instal-Module, it might give some more clues.


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

0 Kudos
chrischrischris
Enthusiast
Enthusiast

Thanks nicholas1982 and LucD!

Here are the results:

Windows PowerShell

Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\> Set-ExecutionPolicy Unrestricted -force

PS C:\> $PSVersionTable

Name                           Value

----                           -----

PSVersion                      5.1.14409.1005

PSEdition                      Desktop

PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}

BuildVersion                   10.0.14409.1005

CLRVersion                     4.0.30319.42000

WSManStackVersion              3.0

PSRemotingProtocolVersion      2.3

SerializationVersion           1.1.0.1

PS C:\> Get-Module -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands

---------- -------    ----                                ----------------

Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-Packa...

Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}

Binary     6.5.1.5... VMware.DeployAutomation             {Add-DeployRule, Add-ProxyServer, Add-ScriptBundle, Copy-D...

Binary     6.5.1.5... VMware.ImageBuilder                 {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-Esx...

Binary     6.5.3.6... VMware.VimAutomation.Cis.Core       {Connect-CisServer, Disconnect-CisServer, Get-CisService}

Binary     6.5.1.5... VMware.VimAutomation.Cloud          {Add-CIDatastore, Connect-CIServer, Disconnect-CIServer, G...

Manifest   6.5.1.5... VMware.VimAutomation.Common

Binary     6.5.2.6... VMware.VimAutomation.Core           {Add-PassthroughDevice, Add-VirtualSwitchPhysicalNetworkAd...

Binary     6.0.0.5... VMware.VimAutomation.HA             Get-DrmInfo

Binary     7.1.0.5... VMware.VimAutomation.HorizonView    {Connect-HVServer, Disconnect-HVServer}

Binary     6.5.1.5... VMware.VimAutomation.License        Get-LicenseDataManager

Binary     2.0.0.6... VMware.VimAutomation.Nsxt           {Connect-NsxtServer, Disconnect-NsxtServer, Get-NsxtService}

Binary     6.5.1.5... VMware.VimAutomation.PCloud         {Connect-PIServer, Disconnect-PIServer, Get-PIComputeInsta...

Manifest   1.0.0.5... VMware.VimAutomation.Sdk            {Get-PSVersion, Get-InstallPath}

Binary     6.5.1.5... VMware.VimAutomation.Srm            {Connect-SrmServer, Disconnect-SrmServer}

Binary     6.5.1.5... VMware.VimAutomation.Vds            {Add-VDSwitchPhysicalNetworkAdapter, Add-VDSwitchVMHost, E...

Binary     6.5.1.5... VMware.VimAutomation.vROps          {Connect-OMServer, Disconnect-OMServer, Get-OMAlert, Get-O...

    Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    Name                                ExportedCommands

---------- -------    ----                                ----------------

Manifest   1.0.0.0    AppLocker                           {Set-AppLockerPolicy, Get-AppLockerPolicy, Test-AppLockerP...

Manifest   1.0.0.0    BitsTransfer                        {Add-BitsFile, Remove-BitsTransfer, Complete-BitsTransfer,...

Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance,...

Script     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}

Manifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}

Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...

Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}

Manifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser...

Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...

Script     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy

Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}

Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}

Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredS...

Manifest   1.0.0.0    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEt...

Manifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration,...

Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WS...

Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-Jo...

Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}

Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow

Manifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}

PS C:\> Install-Module -Verbose -Name VMware.PowerCLI

VERBOSE: Using the provider 'PowerShellGet' for searching packages.

VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.

VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.

VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.

VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.PowerCLI'' for ''.

VERBOSE: Total package yield:'1' for the specified package 'VMware.PowerCLI'.

VERBOSE: Performing the operation "Install-Module" on target "Version '6.5.3.6870460' of module 'VMware.PowerCLI'".

Untrusted repository

You are installing the modules from an untrusted repository. If you trust this repository, change its

InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from

'PSGallery'?

[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

VERBOSE: The installation scope is specified to be 'AllUsers'.

VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'.

VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.

VERBOSE: Downloading module 'VMware.PowerCLI' with version '6.5.3.6870460' from the repository 'https://www.powershellgallery.com/api/v2/'.

VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.PowerCLI'' for ''.

VERBOSE: Package 'VMware.VimAutomation.Sdk' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Common' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Srm' is already installed.

VERBOSE: Package 'VMware.VimAutomation.License' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Vds' is already installed.

VERBOSE: Package 'VMware.VimAutomation.vROps' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Nsxt' is already installed.

VERBOSE: Package 'VMware.VimAutomation.HA' is already installed.

VERBOSE: Package 'VMware.VimAutomation.HorizonView' is already installed.

VERBOSE: Package 'VMware.VimAutomation.PCloud' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Cloud' is already installed.

VERBOSE: Package 'VMware.DeployAutomation' is already installed.

VERBOSE: Package 'VMware.ImageBuilder' is already installed.

VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Storage'' for ''.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.StorageUtility'' for ''.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VumAutomation'' for ''.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Sdk' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Common' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Srm' is already installed.

VERBOSE: Package 'VMware.VimAutomation.License' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Vds' is already installed.

VERBOSE: Package 'VMware.VimAutomation.vROps' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Nsxt' is already installed.

VERBOSE: Package 'VMware.VimAutomation.HA' is already installed.

VERBOSE: Package 'VMware.VimAutomation.HorizonView' is already installed.

VERBOSE: Package 'VMware.VimAutomation.PCloud' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Cloud' is already installed.

VERBOSE: Package 'VMware.DeployAutomation' is already installed.

VERBOSE: Package 'VMware.ImageBuilder' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: Package 'VMware.VimAutomation.Core' is already installed.

VERBOSE: InstallPackage' - name='VMware.VimAutomation.Storage', version='6.5.1.5374001',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Storage',

version='6.5.1.5374001',destination='C:\Users\cseli\AppData\Local\Temp\1059745359\VMware.VimAutomation.Storage\VMware.VimAutomation.Storage.nupkg',

uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Storage/6.5.1.5374001'

VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Storage/6.5.1.5374001'.

VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Storage/6.5.1.5374001'.

VERBOSE: Completed downloading 'VMware.VimAutomation.Storage'.

VERBOSE: Hash for package 'VMware.VimAutomation.Storage' does not match hash provided from the server.

VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Storage', version='6.5.1.5374001',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: InstallPackage' - name='VMware.VimAutomation.StorageUtility', version='1.0',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: DownloadPackage' - name='VMware.VimAutomation.StorageUtility',

version='1.0',destination='C:\Users\cseli\AppData\Local\Temp\1059745359\VMware.VimAutomation.StorageUtility\VMware.VimAutomation.StorageUtility.nupkg',

uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.StorageUtility/1.0.0'

VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.StorageUtility/1.0.0'.

VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.StorageUtility/1.0.0'.

VERBOSE: Completed downloading 'VMware.VimAutomation.StorageUtility'.

VERBOSE: Hash for package 'VMware.VimAutomation.StorageUtility' does not match hash provided from the server.

VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.StorageUtility', version='1.0',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: InstallPackage' - name='VMware.VumAutomation', version='6.5.1.5301639',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: DownloadPackage' - name='VMware.VumAutomation',

version='6.5.1.5301639',destination='C:\Users\cseli\AppData\Local\Temp\1059745359\VMware.VumAutomation\VMware.VumAutomation.nupkg',

uri='https://www.powershellgallery.com/api/v2/package/VMware.VumAutomation/6.5.1.5301639'

VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VumAutomation/6.5.1.5301639'.

VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VumAutomation/6.5.1.5301639'.

VERBOSE: Completed downloading 'VMware.VumAutomation'.

VERBOSE: Hash for package 'VMware.VumAutomation' does not match hash provided from the server.

VERBOSE: InstallPackageLocal' - name='VMware.VumAutomation', version='6.5.1.5301639',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: Found the catalog file 'VMware.VimAutomation.Storage.cat' in the module 'VMware.VimAutomation.Storage' contents.

VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Storage.cat' for the module 'VMware.VimAutomation.Storage'.

VERBOSE: Validating the 'VMware.VimAutomation.Storage' module files for catalog signing using the catalog file 'VMware.VimAutomation.Storage.cat'.

VERBOSE: InstallPackage' - name='VMware.PowerCLI', version='6.5.3.6870460',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: DownloadPackage' - name='VMware.PowerCLI',

version='6.5.3.6870460',destination='C:\Users\cseli\AppData\Local\Temp\1059745359\VMware.PowerCLI\VMware.PowerCLI.nupkg',

uri='https://www.powershellgallery.com/api/v2/package/VMware.PowerCLI/6.5.3.6870460'

VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.PowerCLI/6.5.3.6870460'.

VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.PowerCLI/6.5.3.6870460'.

VERBOSE: The catalog signature in 'VMware.VimAutomation.Storage.cat' of the module 'VMware.VimAutomation.Storage' is valid and matches with the hash generated from

the module contents.

VERBOSE: Completed downloading 'VMware.PowerCLI'.

VERBOSE: Hash for package 'VMware.PowerCLI' does not match hash provided from the server.

VERBOSE: InstallPackageLocal' - name='VMware.PowerCLI', version='6.5.3.6870460',destination='C:\Users\cseli\AppData\Local\Temp\1059745359'

VERBOSE: Installing the dependency module 'VMware.VimAutomation.Storage' with version '6.5.1.5374001' for the module 'VMware.PowerCLI'.

VERBOSE: Module 'VMware.VimAutomation.Storage' was installed successfully to path 'C:\Program

Files\WindowsPowerShell\Modules\VMware.VimAutomation.Storage\6.5.1.5374001'.

VERBOSE: Found the catalog file 'VMware.VimAutomation.StorageUtility.cat' in the module 'VMware.VimAutomation.StorageUtility' contents.

VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.StorageUtility.cat' for the module 'VMware.VimAutomation.StorageUtility'.

VERBOSE: Validating the 'VMware.VimAutomation.StorageUtility' module files for catalog signing using the catalog file 'VMware.VimAutomation.StorageUtility.cat'.

VERBOSE: The catalog signature in 'VMware.VimAutomation.StorageUtility.cat' of the module 'VMware.VimAutomation.StorageUtility' is valid and matches with the hash

generated from the module contents.

VERBOSE: Installing the dependency module 'VMware.VimAutomation.StorageUtility' with version '1.0' for the module 'VMware.PowerCLI'.

VERBOSE: Module 'VMware.VimAutomation.StorageUtility' was installed successfully to path 'C:\Program

Files\WindowsPowerShell\Modules\VMware.VimAutomation.StorageUtility\1.0'.

VERBOSE: Found the catalog file 'VMware.VumAutomation.cat' in the module 'VMware.VumAutomation' contents.

VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VumAutomation.cat' for the module 'VMware.VumAutomation'.

VERBOSE: Validating the 'VMware.VumAutomation' module files for catalog signing using the catalog file 'VMware.VumAutomation.cat'.

VERBOSE: The catalog signature in 'VMware.VumAutomation.cat' of the module 'VMware.VumAutomation' is valid and matches with the hash generated from the module

contents.

VERBOSE: Installing the dependency module 'VMware.VumAutomation' with version '6.5.1.5301639' for the module 'VMware.PowerCLI'.

VERBOSE: Module 'VMware.VumAutomation' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VumAutomation\6.5.1.5301639'.

VERBOSE: Found the catalog file 'VMware.PowerCLI.cat' in the module 'VMware.PowerCLI' contents.

VERBOSE: Valid authenticode signature found in the catalog file 'VMware.PowerCLI.cat' for the module 'VMware.PowerCLI'.

VERBOSE: Validating the 'VMware.PowerCLI' module files for catalog signing using the catalog file 'VMware.PowerCLI.cat'.

VERBOSE: The catalog signature in 'VMware.PowerCLI.cat' of the module 'VMware.PowerCLI' is valid and matches with the hash generated from the module contents.

VERBOSE: Module 'VMware.PowerCLI' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\VMware.PowerCLI\6.5.3.6870460'.

PS C:\> Get-PowerCLIVersion

WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a better product. You can join using the

following command:

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true

VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services, to fix

problems, and to advise you on how best to deploy and use our products.  As part of the CEIP, VMware collects technical information about your organization’s use

of VMware products and services on a regular basis in association with your organization’s VMware license key(s).  This information does not personally identify

any individual.

For more details: type "help about_ceip" to see the related help article.

To disable this warning and set your preference use the following command and restart PowerShell:

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.

WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead.

PowerCLI Version

----------------

   VMware PowerCLI 6.5.1 build 5377412

---------------

Component Versions

---------------

   VMware Cis Core PowerCLI Component 6.5 build 6870462

   VMware VimAutomation Core PowerCLI Component 6.5 build 6234650

0 Kudos
chrischrischris
Enthusiast
Enthusiast

If you look through the verbose section you will see that 6.5.3 was downloaded but not installed.  Weird.

0 Kudos
LucD
Leadership
Leadership

Can you try emptying the folder C:\Users\cseli\AppData\Local\Temp before you do a new attempt?


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

0 Kudos
anton749
Contributor
Contributor

Hi, i am kind of having a similar issue when installing behind a proxy, the error i get is below

VERBOSE: InstallPackageLocal' - name='VMware.Vim',

version='7.0.0.15939650',destination='C:\Users\jgarcia241\AppData\Local\Temp\1120052726'

VERBOSE: Found the catalog file 'VMware.VimAutomation.Common.cat' in the module 'VMware.VimAutomation.Common' contents

VERBOSE: InstallPackage' - name='VMware.VimAutomation.Cis.Core',

version='12.0.0.15939657',destination='C:\Users\jgarcia241\AppData\Local\Temp\1120052726'

VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Cis.Core',

version='12.0.0.15939657',destination='C:\Users\jgarcia241\AppData\Local\Temp\1120052726\VMware.VimAutomation.Cis.Core

VMware.VimAutomation.Cis.Core.nupkg',

uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Cis.Core/12.0.0.15939657'

VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Cis.Core/12.0.0.15939657'.

VERBOSE: Could not find a part of the path

'C:\Users\jgarcia241\AppData\Local\Temp\1120052726\VMware.VimAutomation.Cis.Core\VMware.VimAutomation.Cis.Core.nupkg'.

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

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

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 : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.P

   ackageManagement.Cmdlets.InstallPackage

 
VERBOSE: InstallPackageLocal' - name='VMware.Vim',
version='7.0.0.15939650',destination='C:\Users\jgarcia241\AppData\Local\Temp\1120052726'
VERBOSE: Found the catalog file 'VMware.VimAutomation.Common.cat' in the module 'VMware.VimAutomation.Common' contents
VERBOSE: InstallPackage' - name='VMware.VimAutomation.Cis.Core',
version='12.0.0.15939657',destination='C:\Users\jgarcia241\AppData\Local\Temp\1120052726'
VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Cis.Core',
version='12.0.0.15939657',destination='C:\Users\jgarcia241\AppData\Local\Temp\1120052726\VMware.VimAutomation.Cis.Core
VMware.VimAutomation.Cis.Core.nupkg',
VERBOSE: Could not find a part of the path
'C:\Users\jgarcia241\AppData\Local\Temp\1120052726\VMware.VimAutomation.Cis.Core\VMware.VimAutomation.Cis.Core.nupkg'.
PackageManagement\Install-Package : The module 'VMware.VimAutomation.Common' cannot be installed or updated because
the authenticode signature of the file 'VMware.VimAutomation.Common.cat' is not valid.
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 : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.P
   ackageManagement.Cmdlets.InstallPackage
0 Kudos
LucD
Leadership
Leadership

Can you try installing via Save-Module (see PowerCLI Offline Installation Walkthrough) or from the ZIP package?


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

0 Kudos
anton749
Contributor
Contributor

I opted to try the skippublisher check option and that did it! , do you see any possible issue with that?

Install-Module -Name VMware.PowerCLI -RequiredVersion 11.5.0.14912921 -verbose -SkipPublisherCheck

i then rebooted and notice it no longer shows three different PowerShellGet versions but just 2.2.4.1

0 Kudos
LucD
Leadership
Leadership

No, there shouldn't be any issue with using the SkipPublisherCheck switch.

Not sure how the older PowerShellGet versions got removed.

This is not something that is done automatically.


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

0 Kudos