VMware Cloud Community
hgarikipati
Contributor
Contributor

Unable to complete the installation of powercli 11.3 version

Error :

PS C:\WINDOWS\system32> Install-Module -Name VMware.PowerCLI -RequiredVersion 11.3.0.13990089

WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.

PackageManagement\Install-Package : No match was found for the specified search criteria and module name

'VMware.PowerCLI'. Try Get-PSRepository to see all available registered module repositories.

At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21

+ ...          $null = PackageManagement\Install-Package @PSBoundParameters

+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex

   ception

    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

*I was able to install the latest version 12.X using "Install-Module -Name VMware.PowerCLI"

*My requirrement is 11.3

0 Kudos
1 Reply
LucD
Leadership
Leadership

Looks like you have an old version of the PowerShellGet module.

Can you try to upgrade that one first?

Install-PackageProvider Nuget –Force

Install-Module –Name PowerShellGet –Force


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

0 Kudos