Print

vSphere PowerCLI is a command-line and scripting tool built on Windows PowerShell, and provides more than 200 cmdlets for managing and automating vSphere.

 
Download vSphere PowerCLI 
Install Guide
Admin Guide
Developers Guide
Online Command Reference
 
 
Requirements
To use vSphere PowerCLI, you need:
 
Supported Platforms
vSphere PowerCLI 4.0 Update 1 works on the 32-bit and 64-bit versions of the following operating systems:

 

vSphere PowerCLI 4.0 Update 1 supports the following VMware environments

 

 

 

 
 
Run the following (In Bold):
 
Set-ExecutionPolicy RemoteSigned
 
Connect-VIServer
 
cmdlet Connect-VIServer at command pipeline position 1
Supply values for the following parameters:
Server[0]: vc1.vmadmin.local
Server[1]:

WARNING: There were one or more problems with the server certificate:
 
* The X509 chain could not be built up to the root certificate.

Name                       Port                       User
----                       ----                       ----
vc1.vmadmin.local       443                        VMADMIN\administrator
 
Example (Get All VMs):
Get-VM
Name                 PowerState Num CPUs Memory (MB)
----                 ---------- -------- -----------
DC1                 PoweredOn  1        512
VC1                 PoweredOn  1        4096