Home VMware vSphere PowerCLI
vSphere PowerCLI Getting Started Print E-mail

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

 
 
 
Requirements
To use vSphere PowerCLI, you need:
  • .NET 2.0 Service Pack 1
  • Windows PowerShell 1.0 or Windows PowerShell 2.0 Release To Manufacture (RTM).
  • If .NET 2.0 is installed without Service Pack 1, some operations might take long to complete.
 
Supported Platforms
vSphere PowerCLI 4.0 Update 1 works on the 32-bit and 64-bit versions of the following operating systems:
  • Windows Vista
  • Windows XP Service Pack 2
  • Windows Server 2003

 

vSphere PowerCLI 4.0 Update 1 supports the following VMware environments

  • VMware ESX Server 3.5
  • VMware ESX Server 3i
  • VMware VirtualCenter 2.5
  • VMware ESX 3.0 and VirtualCenter 2.0
  • VMware ESX 4.0 and vCenter 4.0
  • VMware ESX 4.0 Update 1 and vCenter 4.0 Update 1

 

 

 

 
 
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
 

vcplogo

  

 

DISCLAIMER: All advice, tips, guides and other information on this website is provided as-is with no warranty or guarantee. While most information is correct to the best of my knowledge, I am not reponsible for any issues that may arise in using the information, and you do so at your own risk. As always before doing anything; check, double check, test and always make a backup.

 

Help VMadmin

All resources on this site are provided absolutley free. However it takes time and money to keep the site running. If any information has been helpful to you or your company, and you wish to make a donation to help keep VMadmin.co.uk running you can do so via paypal, and it would be much appreciated.

Click to donate to VMadmin.co.uk via paypal.