Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

Trying to install PowerCLI 10 on Windows 7 and failing ... please help!

$
0
0

Hi all,

 

I need your help.

 

I'm trying to install PowerCLI 10 on Windows 7 and failing, repeatedly.  No matter what I do, I always end-up with a 6.5.* version:

 

After running my script (below), I'm still on version 6.5.*:

 

PS C:\Users> Get-PowerCLIVersion

 

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

 

 

PS C:\Users> Get-Module -Name VMware.* | Select-Object -Property Name,Version

 

Name                          Version     

----                          -------     

VMware.VimAutomation.Cis.Core 6.5.3.6870462

VMware.VimAutomation.Common   6.5.1.5335010

VMware.VimAutomation.Core     6.5.2.6234650

VMware.VimAutomation.Sdk      1.0.0.5334677

 

 

Here is my script: it kept not working, so I kept adding (things I did not understand) to it:

 

# Set execution policy:

set-executionpolicy unrestricted

 

# The VMware.PowerCLI module is a NuGet repository.

# So, we need to install NuGet before trying the install:

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

 

# Close and reopen PowerShell.  Why? Is this really necessary?

 

# Confirm version -- WHY is it not version 10? 

Get-PowerCLIVersion

 

# why?

Install-Module –Name PowerShellGet –Force  -AllowClobber

 

# Install PowerCLI 10:

Install-Module -Name VMware.PowerCLI -Scope CurrentUser

 

# Confirm version -- WHY is it not version 10?

Get-PowerCLIVersion

Get-Module -Name VMware.* | Select-Object -Property Name,Version

 

# Update PowerCLI:

Update-Module VMware.PowerCLI

 

# Confirm version -- WHY is it not version 10?

Get-PowerCLIVersion

Get-Module -Name VMware.* | Select-Object -Property Name,Version

 

# Try this:

Save-Module -Name VMware.PowerCLI -Path .

Install-Module -Name VMware.PowerCLI

 

# Confirm version -- WHY is it not version 10?

Get-PowerCLIVersion

Get-Module -Name VMware.* | Select-Object -Property Name,Version

 


Viewing all articles
Browse latest Browse all 16717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>