PowerCLI

 View Only
  • 1.  Silent install PowerCli 6 or use in script.

    Posted Feb 06, 2016 09:52 PM

    I have already spent more time on this than I dare to admit.

    It seems like a fairy straight forward thing, install PowerCli 6.

    The only official thing I could find was on PowerCli 5, maybe it's different.

    Here is what I have so far.

    $powerCli = C:\Users\me\Downloads\PowerShell\PowerCLI\VMware-PowerCLI-6.0.0-3205540.exe

    & $ENV:ComSpec /c $powerCli /s /v /qn

    Any help?



  • 2.  RE: Silent install PowerCli 6 or use in script.

    Posted Feb 07, 2016 02:17 AM

    Hey.

    I solved this for 5.5 a year ago or so. When you install PowerCLI manually, the .msi-files will be extracted to %temp%.

    First up during install of VMware-PowerCLI-6.0.0-3205540.exe is the Remote Console Web Plugin. Look in your %temp% folder while installing. A new folder will be created containing the following file:

    VMwareRemoteConsoleWebPlugIn.msi

    After this has been installed, PowerCLI is next. Again, a new folder will be created in %temp% with an extracted .msi file for PowerCLI:

    VMware vSphere PowerCLI.msi

    Try using these files for silent installs, e.g.

    msiexec /i "VMwareRemoteConsoleWebPlugIn.msi"

    msiexec /i "VMware vSphere PowerCLI.msi"

    Try it with the /q or /qn flags if it doesn't work like you want it to.



  • 3.  RE: Silent install PowerCli 6 or use in script.

    Posted Feb 07, 2016 09:01 AM

    There is a good description of the arguments you can use for an unattended PowerCLI installation (latest builds) in Vineeth's excellent DSC post Automate PowerCLI Install across your Windows Environment using PowerShell DSC.

    Even if you don't use DSC, you'll find the arguments in that post.



  • 4.  RE: Silent install PowerCli 6 or use in script.

    Posted May 03, 2017 07:17 PM

    Hi Transplant,

    Hopefully this should help you out!

    I wrote a powershell install wrapper for it.

    SCCM PowerCLI Silent deployment script - SCCMOG - Deployment Blog

    Cheers,

    SCCMOG