Monday, August 8, 2022

 

PowerCli Installation

 

Step 1: Run PowerShell as Administrator

Step 2: Change the execution policy to RemoteSigned

PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned

Step 3: Install and Update PowerCLI:

PS C:\Windows\system32> Install-Module -Name VMware.PowerCLI

PS C:\Windows\system32> Update-Module -Name VMware.PowerCLI

Step 4: Verify if the PowerCLI module is available on your system.

PS C:\Windows\system32> Get-Module -Name VMware.PowerCLI –ListAvailable

Step 5: Test

PS C:\Windows\system32> Connect-VIServer -Server IPAddress -User root -Password Pass!

Fix to " Invalid Server Certificate Error "

PS C:\Windows\system32> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false