Launching PowerCLI

Launching PowerCLI from Mac/Linux

Step 1 - Open terminal

Step 2 - Start Powershell in the terminal by running the following command:


Step 3 - Import the PowerCLI Modules into your PowerShell Session:

Get-Module -ListAvailable PowerCLI* | Import-Module

Step 3a - (Optional - Please Read) If the SSL certificates of your vCenter are not trusted by your OS, disable SSL certificate validation for PowerCLI by running:

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore

Step 4 - Connect to your vCenter Server using Connect-VIServer

PS> Connect-VIServer -Server -User administrator@vSphere.local -
Password VMware1!
Name Port User
---- ---- ---- 443 VSPHERE.LOCAL\Administrator

Launching the PowerCLI Docker container

Open a Terminal and run:

docker run --rm -it vmware/powerclicore

More options for working with and running the container can be found here.