PowerCLI

 View Only
  • 1.  Install-Module VMWare.PowerCLI running for 3 hours and climbing...

    Posted Apr 07, 2024 09:45 PM
      |   view attached

    I was given a task that I need to use VMWare PowerCLI to accomplish.   I merely need to clone an existing VM to another VM in our corporate vSphere, and I should have sufficient permissions.

    Looking at the Getting Started Documentation it says I need to open powershell as Admin, and enter "Install-Module VMWare.PowerCLI".  Several download progress bars appeared over the course of 4-5 minutes and then powershell seemed to start running things in the background.

    After 45 minutes I opened Microsoft Procmon to see if it was still executing.   I have now been monitoring it for 3 hours.

    Can anyone give me an estimate of how long this should take before I decide it has somehow entered an infinite loop and will never end?   I'll be glad to let it run all night if that is, in fact, how long it properly takes.

    OS is Windows Server 2019 Standard.   Machine is relatively clean.   

    PS C:\Windows\system32> $PSVersionTable

    Name Value
    ---- -----
    PSVersion 5.1.17763.2931
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.17763.2931
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1



  • 2.  RE: Install-Module VMWare.PowerCLI running for 3 hours and climbing...

    Posted Apr 07, 2024 10:09 PM

    LOL disregard please.   The command finished and the prompt has returned to the powershell window.   Total install time was 3.5 hours.



  • 3.  RE: Install-Module VMWare.PowerCLI running for 3 hours and climbing...

    Posted Apr 08, 2024 02:01 PM

    That is not normal, takes a couple minutes max.

    You could check which version of the PowerShellGet module you have installed.
    There are some reported PS issues for Install-MOdule (for example #17210) that describe something similar.

    Adding the Verbose switch might give some clues where the time is spent.