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

Prerequisites

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

Optional

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

One thought on “Automate PowerCLI Install using Powershell

Leave a Reply

Your email address will not be published. Required fields are marked *