PowerCLI

 View Only
  • 1.  Trouble Installing PowerCLI

    Posted Sep 09, 2019 05:04 PM

    Hi All,

    I am having trouble installing PowerCLI. I have found a few threads where this problem has been brought up, but nothing I found has a conclusion.

    I am running Windows 10 Pro x64 v1809.

    Here is the cmdlet and the error that I am getting when running it:

    install-module -Name VMware.PowerCLI -allowclobber PackageManagement\Install-Package : Unable to read file C:\Users\timh\AppData\Local\Temp\1457216093\VMware.VimAutomation.Core\net45\VMware Remote Console\gobject-2.0.dll to calculate its hash. 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:Install    Package) [Install-Package], Exception     + FullyQualifiedErrorId : UnableToReadFileToHash,Microsoft.PowerShell.Commands.TestFil    eCatalogCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

     

    Here is the result with the -verbose switch

    VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the reg istered repositories. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageMa nagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.PowerCLI'' for ''. VERBOSE: Total package yield:'1' for the specified package 'VMware.PowerCLI'. VERBOSE: Performing the operation "Install-Module" on target "Version '11.4.0.14413515' of m odule 'VMware.PowerCLI'". VERBOSE: The installation scope is specified to be 'AllUsers'. VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modul es'. VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'. VERBOSE: Downloading module 'VMware.PowerCLI' with version '11.4.0.14413515' from the reposi tory 'https://www.powershellgallery.com/api/v2/'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.PowerCLI'' for ''. VERBOSE: Package 'VMware.VimAutomation.Sdk' is already installed. VERBOSE: Package 'VMware.VimAutomation.Common' is already installed. VERBOSE: Package 'VMware.Vim' is already installed. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Core'' for ''. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Srm'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Core'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.License'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Vds'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Vmc'' for ''. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Nsxt'' for ''. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.vROps'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Vds'' for ''. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.HorizonView'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Cloud'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Vds'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.DeployAutomation'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.ImageBuilder'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Core'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Storage'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.StorageUtility'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Core'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VumAutomation'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Core'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Security'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Storage'' for ''. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?i d='VMware.VimAutomation.Hcx'' for ''. VERBOSE: Package 'VMware.VimAutomation.Sdk' is already installed. VERBOSE: Package 'VMware.VimAutomation.Common' is already installed. VERBOSE: Package 'VMware.Vim' is already installed. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed. VERBOSE: InstallPackage' - name='VMware.VimAutomation.Core', version='11.3.0.13964826',desti nation='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Core', version='11.3.0.13964826',dest ination='C:\Users\timh\AppData\Local\Temp\1457216093\VMware.VimAutomation.Core\VMware.VimAut omation.Core.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomat ion.Core/11.3.0.13964826' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation. Core/11.3.0.13964826'. VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimA utomation.Core/11.3.0.13964826'. VERBOSE: Completed downloading 'VMware.VimAutomation.Core'. VERBOSE: Hash for package 'VMware.VimAutomation.Core' does not match hash provided from the server. VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Core', version='11.3.0.13964826', destination='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: InstallPackage' - name='VMware.VimAutomation.Srm', version='11.2.0.12483605',destin ation='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Srm', version='11.2.0.12483605',desti nation='C:\Users\timh\AppData\Local\Temp\1457216093\VMware.VimAutomation.Srm\VMware.VimAutom ation.Srm.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation .Srm/11.2.0.12483605' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation. Srm/11.2.0.12483605'. VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimA utomation.Srm/11.2.0.12483605'. VERBOSE: Completed downloading 'VMware.VimAutomation.Srm'. VERBOSE: Hash for package 'VMware.VimAutomation.Srm' does not match hash provided from the s erver. VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Srm', version='11.2.0.12483605',d estination='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: InstallPackage' - name='VMware.VimAutomation.License', version='11.3.0.13990093',de stination='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: DownloadPackage' - name='VMware.VimAutomation.License', version='11.3.0.13990093',d estination='C:\Users\timh\AppData\Local\Temp\1457216093\VMware.VimAutomation.License\VMware. VimAutomation.License.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.V imAutomation.License/11.3.0.13990093' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation. License/11.3.0.13990093'. VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimA utomation.License/11.3.0.13990093'. VERBOSE: Completed downloading 'VMware.VimAutomation.License'. VERBOSE: Hash for package 'VMware.VimAutomation.License' does not match hash provided from t he server. VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.License', version='11.3.0.1399009 3',destination='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: Found the catalog file 'VMware.VimAutomation.Core.cat' in the module 'VMware.VimAut omation.Core' contents. VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Core.c at' for the module 'VMware.VimAutomation.Core'. VERBOSE: Validating the 'VMware.VimAutomation.Core' module files for catalog signing using t he catalog file 'VMware.VimAutomation.Core.cat'. VERBOSE: InstallPackage' - name='VMware.VimAutomation.Vds', version='11.2.0.12483615',destin ation='C:\Users\timh\AppData\Local\Temp\1457216093' VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Vds', version='11.2.0.12483615',desti nation='C:\Users\timh\AppData\Local\Temp\1457216093\VMware.VimAutomation.Vds\VMware.VimAutom ation.Vds.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation .Vds/11.2.0.12483615' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation. Vds/11.2.0.12483615'. PackageManagement\Install-Package : Unable to read file C:\Users\timh\AppData\Local\Temp\1457216093\VMware.VimAutomation.Core\net45\VMware Remote Console\gobject-2.0.dll to calculate its hash. 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:Install    Package) [Install-Package], Exception     + FullyQualifiedErrorId : UnableToReadFileToHash,Microsoft.PowerShell.Commands.TestFil    eCatalogCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

    When I look at the subfolder in the Temp directory (1457216093 in this instance), it does not even have a VMware.VimAutomation.Core subdirectory. Everytime I have tried running this, the non-existant subdirectory is a different one.

    Yes, I am running ISE as administrator. I also tried emptying the Temp folder before installing. I also tried turning off AV before running. I am selecting Yes to All when asked for permission. I have tried it in the regular Powershell (not ISE) as well. I am using the Windows version of Powershell and I tried both x64 and x86 versions.

    Apparently, it is trying to read a file in a directory that the install did not create for some reason.

     

    Please help!

    Thanks!

    Tim



  • 2.  RE: Trouble Installing PowerCLI

    Posted Sep 09, 2019 05:08 PM

    Sorry, I didn't know it format the output like that. Here it is:

    VERBOSE: The installation scope is specified to be 'AllUsers'.
    VERBOSE: The specified module will be installed in 'C:\Program Files (x86)\WindowsPowerShell\Modules'.
    VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
    VERBOSE: Downloading module 'VMware.PowerCLI' with version '11.4.0.14413515' 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.Vim' is already installed.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Core'' for ''.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Srm'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Core'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.License'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Vds'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Vmc'' for ''.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Nsxt'' for ''.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.vROps'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Vds'' for ''.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.HorizonView'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Cloud'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Vds'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.DeployAutomation'' for ''.
    VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.ImageBuilder''
    for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Core'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Storage'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.StorageUtility'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Core'' for ''.
    VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VumAutomation''
    for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Core'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Security'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Storage'' for ''.
    VERBOSE: Searching repository
    'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='VMware.VimAutomation.Hcx'' for ''.
    VERBOSE: Package 'VMware.VimAutomation.Sdk' is already installed.
    VERBOSE: Package 'VMware.VimAutomation.Common' is already installed.
    VERBOSE: Package 'VMware.Vim' is already installed.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: Package 'VMware.VimAutomation.Cis.Core' is already installed.
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Core',
    version='11.3.0.13964826',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Core',
    version='11.3.0.13964826',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Core\VMware.Vim
    Automation.Core.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Core/11.3.0.13964826'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Core/11.3.0.13964826'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Core/11.3.0.13964826'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.Core'.
    VERBOSE: Hash for package 'VMware.VimAutomation.Core' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Core',
    version='11.3.0.13964826',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Srm',
    version='11.2.0.12483605',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Srm',
    version='11.2.0.12483605',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Srm\VMware.VimA
    utomation.Srm.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Srm/11.2.0.12483605'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Srm/11.2.0.12483605'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Srm/11.2.0.12483605'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.Srm'.
    VERBOSE: Hash for package 'VMware.VimAutomation.Srm' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Srm',
    version='11.2.0.12483605',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.License',
    version='11.3.0.13990093',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.License',
    version='11.3.0.13990093',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.License\VMware.
    VimAutomation.License.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.License/11.3.0.13990093'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.License/11.3.0.13990093'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.License/11.3.0.13990093'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.License'.
    VERBOSE: Hash for package 'VMware.VimAutomation.License' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.License',
    version='11.3.0.13990093',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: Found the catalog file 'VMware.VimAutomation.Core.cat' in the module 'VMware.VimAutomation.Core' contents.
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Vds',
    version='11.2.0.12483615',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Vds',
    version='11.2.0.12483615',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Vds\VMware.VimA
    utomation.Vds.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Vds/11.2.0.12483615'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Vds/11.2.0.12483615'.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Core.cat' for the module
    'VMware.VimAutomation.Core'.
    VERBOSE: Validating the 'VMware.VimAutomation.Core' module files for catalog signing using the catalog file
    'VMware.VimAutomation.Core.cat'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Vds/11.2.0.12483615'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.Vds'.
    VERBOSE: Hash for package 'VMware.VimAutomation.Vds' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Vds',
    version='11.2.0.12483615',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Vmc',
    version='11.3.0.13964814',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Vmc',
    version='11.3.0.13964814',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Vmc\VMware.VimA
    utomation.Vmc.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Vmc/11.3.0.13964814'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Vmc/11.3.0.13964814'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Vmc/11.3.0.13964814'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.Vmc'.
    VERBOSE: Hash for package 'VMware.VimAutomation.Vmc' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Vmc',
    version='11.3.0.13964814',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Nsxt',
    version='11.3.0.13964817',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Nsxt',
    version='11.3.0.13964817',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Nsxt\VMware.Vim
    Automation.Nsxt.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Nsxt/11.3.0.13964817'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Nsxt/11.3.0.13964817'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.Core.cat' of the module 'VMware.VimAutomation.Core' is valid
    and matches with the hash generated from the module contents.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Nsxt/11.3.0.13964817'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.Nsxt'.
    VERBOSE: Hash for package 'VMware.VimAutomation.Nsxt' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Nsxt',
    version='11.3.0.13964817',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.Core' with version '11.3.0.13964826' for the module
    'VMware.PowerCLI'.
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.vROps',
    version='10.0.0.7893921',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.vROps',
    version='10.0.0.7893921',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.vROps\VMware.Vim
    Automation.vROps.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.vROps/10.0.0.7893921'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.vROps/10.0.0.7893921'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.vROps/10.0.0.7893921'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.vROps'.
    VERBOSE: Hash for package 'VMware.VimAutomation.vROps' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.vROps',
    version='10.0.0.7893921',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: Module 'VMware.VimAutomation.Core' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.Core\11.3.0.13964826'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.Srm.cat' in the module 'VMware.VimAutomation.Srm' contents.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Srm.cat' for the module
    'VMware.VimAutomation.Srm'.
    VERBOSE: Validating the 'VMware.VimAutomation.Srm' module files for catalog signing using the catalog file
    'VMware.VimAutomation.Srm.cat'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.Srm.cat' of the module 'VMware.VimAutomation.Srm' is valid and
    matches with the hash generated from the module contents.
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.HorizonView',
    version='7.9.0.14170454',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.HorizonView',
    version='7.9.0.14170454',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.HorizonView\VMwa
    re.VimAutomation.HorizonView.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.HorizonView/7.9.0.14170454'
    VERBOSE: Downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.HorizonView/7.9.0.14170454'.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.Srm' with version '11.2.0.12483605' for the module
    'VMware.PowerCLI'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.HorizonView/7.9.0.14170454'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.HorizonView'.
    VERBOSE: Hash for package 'VMware.VimAutomation.HorizonView' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.HorizonView',
    version='7.9.0.14170454',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: Module 'VMware.VimAutomation.Srm' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.Srm\11.2.0.12483605'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.License.cat' in the module 'VMware.VimAutomation.License'
    contents.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.License.cat' for the module
    'VMware.VimAutomation.License'.
    VERBOSE: Validating the 'VMware.VimAutomation.License' module files for catalog signing using the catalog file
    'VMware.VimAutomation.License.cat'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.License.cat' of the module 'VMware.VimAutomation.License' is
    valid and matches with the hash generated from the module contents.
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Cloud',
    version='11.0.0.10379994',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Cloud',
    version='11.0.0.10379994',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Cloud\VMware.Vi
    mAutomation.Cloud.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Cloud/11.0.0.10379994'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Cloud/11.0.0.10379994'.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.License' with version '11.3.0.13990093' for the module
    'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.License' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.License\11.3.0.13990093'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Cloud/11.0.0.10379994'.
    VERBOSE: Completed downloading 'VMware.VimAutomation.Cloud'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.Vds.cat' in the module 'VMware.VimAutomation.Vds' contents.
    VERBOSE: Hash for package 'VMware.VimAutomation.Cloud' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.VimAutomation.Cloud',
    version='11.0.0.10379994',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Vds.cat' for the module
    'VMware.VimAutomation.Vds'.
    VERBOSE: Validating the 'VMware.VimAutomation.Vds' module files for catalog signing using the catalog file
    'VMware.VimAutomation.Vds.cat'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.Vds.cat' of the module 'VMware.VimAutomation.Vds' is valid and
    matches with the hash generated from the module contents.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.Vds' with version '11.2.0.12483615' for the module
    'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.Vds' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.Vds\11.2.0.12483615'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.Vmc.cat' in the module 'VMware.VimAutomation.Vmc' contents.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Vmc.cat' for the module
    'VMware.VimAutomation.Vmc'.
    VERBOSE: Validating the 'VMware.VimAutomation.Vmc' module files for catalog signing using the catalog file
    'VMware.VimAutomation.Vmc.cat'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.Vmc.cat' of the module 'VMware.VimAutomation.Vmc' is valid and
    matches with the hash generated from the module contents.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.Vmc' with version '11.3.0.13964814' for the module
    'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.Vmc' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.Vmc\11.3.0.13964814'.
    VERBOSE: InstallPackage' - name='VMware.ImageBuilder',
    version='6.7.0.11233116',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.ImageBuilder',
    version='6.7.0.11233116',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.ImageBuilder\VMware.ImageBuild
    er.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.ImageBuilder/6.7.0.11233116'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.ImageBuilder/6.7.0.11233116'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.Nsxt.cat' in the module 'VMware.VimAutomation.Nsxt' contents.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Nsxt.cat' for the module
    'VMware.VimAutomation.Nsxt'.
    VERBOSE: Validating the 'VMware.VimAutomation.Nsxt' module files for catalog signing using the catalog file
    'VMware.VimAutomation.Nsxt.cat'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.Nsxt.cat' of the module 'VMware.VimAutomation.Nsxt' is valid
    and matches with the hash generated from the module contents.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.Nsxt' with version '11.3.0.13964817' for the module
    'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.Nsxt' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.Nsxt\11.3.0.13964817'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.vROps.cat' in the module 'VMware.VimAutomation.vROps' contents.
    VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/VMware.ImageBuilder/6.7.0.11233116'.
    VERBOSE: Completed downloading 'VMware.ImageBuilder'.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.vROps.cat' for the module
    'VMware.VimAutomation.vROps'.
    VERBOSE: Validating the 'VMware.VimAutomation.vROps' module files for catalog signing using the catalog file
    'VMware.VimAutomation.vROps.cat'.
    VERBOSE: Hash for package 'VMware.ImageBuilder' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.ImageBuilder',
    version='6.7.0.11233116',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: The catalog signature in 'VMware.VimAutomation.vROps.cat' of the module 'VMware.VimAutomation.vROps' is valid
    and matches with the hash generated from the module contents.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.vROps' with version '10.0.0.7893921' for the module
    'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.vROps' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.vROps\10.0.0.7893921'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.HorizonView.cat' in the module 'VMware.VimAutomation.HorizonView'
     contents.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.HorizonView.cat' for the module
    'VMware.VimAutomation.HorizonView'.
    VERBOSE: Validating the 'VMware.VimAutomation.HorizonView' module files for catalog signing using the catalog file
    'VMware.VimAutomation.HorizonView.cat'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.HorizonView.cat' of the module
    'VMware.VimAutomation.HorizonView' is valid and matches with the hash generated from the module contents.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.HorizonView' with version '7.9.0.14170454' for the
    module 'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.HorizonView' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.HorizonView\7.9.0.14170454'.
    VERBOSE: InstallPackage' - name='VMware.DeployAutomation',
    version='6.7.0.11233116',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.DeployAutomation',
    version='6.7.0.11233116',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.DeployAutomation\VMware.Deploy
    Automation.nupkg', uri='https://www.powershellgallery.com/api/v2/package/VMware.DeployAutomation/6.7.0.11233116'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.DeployAutomation/6.7.0.11233116'.
    VERBOSE: Found the catalog file 'VMware.VimAutomation.Cloud.cat' in the module 'VMware.VimAutomation.Cloud' contents.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.DeployAutomation/6.7.0.11233116'.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.VimAutomation.Cloud.cat' for the module
    'VMware.VimAutomation.Cloud'.
    VERBOSE: Validating the 'VMware.VimAutomation.Cloud' module files for catalog signing using the catalog file
    'VMware.VimAutomation.Cloud.cat'.
    VERBOSE: Completed downloading 'VMware.DeployAutomation'.
    VERBOSE: Hash for package 'VMware.DeployAutomation' does not match hash provided from the server.
    VERBOSE: InstallPackageLocal' - name='VMware.DeployAutomation',
    version='6.7.0.11233116',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: InstallPackage' - name='VMware.VimAutomation.Storage',
    version='11.4.0.14293163',destination='C:\Users\timh\AppData\Local\Temp\1722811559'
    VERBOSE: DownloadPackage' - name='VMware.VimAutomation.Storage',
    version='11.4.0.14293163',destination='C:\Users\timh\AppData\Local\Temp\1722811559\VMware.VimAutomation.Storage\VMware.
    VimAutomation.Storage.nupkg',
    uri='https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Storage/11.4.0.14293163'
    VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Storage/11.4.0.14293163'.
    VERBOSE: The catalog signature in 'VMware.VimAutomation.Cloud.cat' of the module 'VMware.VimAutomation.Cloud' is valid
    and matches with the hash generated from the module contents.
    VERBOSE: Installing the dependency module 'VMware.VimAutomation.Cloud' with version '11.0.0.10379994' for the module
    'VMware.PowerCLI'.
    VERBOSE: Module 'VMware.VimAutomation.Cloud' was installed successfully to path 'C:\Program Files
    (x86)\WindowsPowerShell\Modules\VMware.VimAutomation.Cloud\11.0.0.10379994'.
    VERBOSE: Found the catalog file 'VMware.ImageBuilder.cat' in the module 'VMware.ImageBuilder' contents.
    VERBOSE: Valid authenticode signature found in the catalog file 'VMware.ImageBuilder.cat' for the module
    'VMware.ImageBuilder'.
    VERBOSE: Validating the 'VMware.ImageBuilder' module files for catalog signing using the catalog file
    'VMware.ImageBuilder.cat'.
    VERBOSE: Completed downloading
    'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Storage/11.4.0.14293163'.
    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='11.4.0.14293163',destination='C:\Users\timh\AppData\Local\Temp\1722811559'



  • 3.  RE: Trouble Installing PowerCLI

    Posted Sep 09, 2019 05:25 PM

    Are you installing or upgrading PowerCLI?

    From the log it looks as if you are upgrading.

    Can you perhaps remove all current PowerCLI module folders.
    Find which folders by doing

    Get-Module -Name VMware* -ListAvailable

    Once everything is removed, stop/start your PS session and do the Install-Module -Name VMware.PowerCLI again.



  • 4.  RE: Trouble Installing PowerCLI

    Posted Sep 09, 2019 06:24 PM

    Thanks for your reply, LucD!

    I was installing PowerCLI. Could it be appearing as an upgrade because I have tried the install several times?

    I removed all of the directories, restarted Powershell and tried again, but I get the same error.

    Now this is weird. I tried using Save-Module -Name VMware.PowerCLI -Path 'C:\Program Files\WindowsPowershell\Modules' and it appears to install, but the module is not listed when I run get-module. All of the directories appear to be there. I then restarted Powershell, ran my profile and ran get-module again. It was not listed, but the commands are working. I am now connected my vcsa.

    I wonder if I will run into an issue at some point, though.



  • 5.  RE: Trouble Installing PowerCLI

    Posted Sep 09, 2019 08:49 PM

    Yes, that's probably what happened.

    Just to make sure, you did do Get-Module -Name VMware* -ListAvailable?