VMware Cloud Community
Transplant
Enthusiast
Enthusiast

Silent install PowerCli 6 or use in script.

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?

0 Kudos
3 Replies
erikjohnsen
Enthusiast
Enthusiast

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.

0 Kudos
LucD
Leadership
Leadership

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.


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

0 Kudos
SCCMOG
Contributor
Contributor

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

0 Kudos