VMware Cloud Community
BSiegfried
Enthusiast
Enthusiast

vSphere PowerCLI

Does the vSphere PowerCLI need to be installed on the vcenter server or can it be installed on my workstation?

Reply
0 Kudos
12 Replies
IRIX201110141
Champion
Champion

On your Workstation or "AdminPC" which also can be a VM for automated stuff.

Todays vCenter is a Appliance named VCSA and you could not or should not install software there. Also its not based on Windows anymore.

Regards,

Joerg

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

Moderator: Thread moved to the dedicated PowerCLI area.


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

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
BSiegfried
Enthusiast
Enthusiast

I'm having a hard time trying to find the PowerCLI on VMware's site.

Reply
0 Kudos
LucD
Leadership
Leadership

Since PowerCLI 6.5.1 it can be found on the PSGallery.

Just run the following from a PS prompt.

Install-Module -Name 'VMware.PowerCLI' -AllowClobber -Force -Confirm:$false


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

Reply
0 Kudos
BSiegfried
Enthusiast
Enthusiast

I entered the command, it went through the install but I do not see it on my workstation.

Reply
0 Kudos
BSiegfried
Enthusiast
Enthusiast

I found the PowerCli download. It's hidden under vSphere 6.5 Drivers & Tools.

Reply
0 Kudos
LucD
Leadership
Leadership

What would you expect to see?


When the installation went ok, you should now be able to start using PowerCLI cmdlets.

What happens when you enter for example Get-PowerCLIConfiguration at a PowerShell prompt?


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

Reply
0 Kudos
LucD
Leadership
Leadership

That download is only there if you need to install PowerCLI on a station that can not reach the PSGallery.
Don't use this when Install-Module works.


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

Reply
0 Kudos
BSiegfried
Enthusiast
Enthusiast

I get, Get-PowerCLIConfiguration is not recognized

Reply
0 Kudos
LucD
Leadership
Leadership

What does the following return?

Both from a PS prompt

$env:PSModulePath

Get-Module -Name VMware.PowerCLI -ListAvailable


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

Reply
0 Kudos
BSiegfried
Enthusiast
Enthusiast

PS C:\WINDOWS\system32> $env:PSModulePath

C:\Users\ssmith\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules

PS C:\WINDOWS\system32> Get-Module -Name VMware.PowerCLI -ListAvailable

PS C:\WINDOWS\system32>

Reply
0 Kudos
LucD
Leadership
Leadership

You still seem to have an older, MSI based, PowerCLI installation on your station.

That needs to be removed first.

Follow the steps described in Welcome PowerCLI to the PowerShell Gallery – Install Process Updates
and Updating PowerCLI through the PowerShell Gallery

That 2nd link describes how to uninstall an old MSI-based PowerCLI installation.
Start there.


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

Reply
0 Kudos