PowerCLI

 View Only
Expand all | Collapse all

vSphere PowerCLI

  • 1.  vSphere PowerCLI

    Posted Apr 24, 2020 03:38 PM

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



  • 2.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 03:43 PM

    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



  • 3.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 03:53 PM

    Moderator: Thread moved to the dedicated PowerCLI area.



  • 4.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 04:17 PM

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



  • 5.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 04:29 PM

    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



  • 6.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 04:55 PM

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



  • 7.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 05:14 PM

    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?



  • 8.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 05:13 PM

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



  • 9.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 05:17 PM

    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.



  • 10.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 07:38 PM

    I get, Get-PowerCLIConfiguration is not recognized



  • 11.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 08:31 PM

    What does the following return?

    Both from a PS prompt

    $env:PSModulePath

    Get-Module -Name VMware.PowerCLI -ListAvailable



  • 12.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 08:44 PM

    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>



  • 13.  RE: vSphere PowerCLI

    Posted Apr 24, 2020 08:59 PM

    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.