Highlighted
Enthusiast
Enthusiast

vSphere PowerCLI

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

0 Kudos
12 Replies
Highlighted
Virtuoso
Virtuoso

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

0 Kudos
Highlighted
VMware Employee
VMware Employee

Moderator: Thread moved to the dedicated PowerCLI area.

0 Kudos
Highlighted
Enthusiast
Enthusiast

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

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos
Highlighted
Enthusiast
Enthusiast

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

0 Kudos
Highlighted
Enthusiast
Enthusiast

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

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos
Highlighted
Enthusiast
Enthusiast

I get, Get-PowerCLIConfiguration is not recognized

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos
Highlighted
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>

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos