Friday, July 22, 2016

Automate PowerCLI Install using Powershell

I had a requirement to automate PowerCLI installation with minimal manual involvement possible

I found the syntax mentioned below from Here


Download and Copy the executable to shared location
Ensure the access is configured

Install PowerCLI Syntax

Set-executionPolicy RemoteSigned -Confirm:$false -force
Write-Host "Installing PowerCLI"
$myargs = $myargs = '/q /s /w /L1033 /v" /qn '
$exe = "C:\PowerCLI\VMware-PowerCLI-5.5.0-1931983.exe"
Start-process $exe $myargs –Wait
Add-PSSnapin -Name VMware.VimAutomation.Core


I also wanted to try to make it completely automated using Powershell DSC  as mentioned Here however I still haven’t had chance. Posting It here in case anyone wants utilize the same

No comments:

Post a Comment