User Tools

Site Tools


os:esxi:powercli

This is an old revision of the document!


ESXi - PowerCLI

Connect

Components used in the following examples:

  • Windows with installed vCenter Server: myWinvCenter01
  • vCenter deployed as VCSA: myVCSA01
  • User in vCenter to connect with: myvCenterUser
  • Related user password: myvCenterPassword

Windows vCenter Server

Add-PSsnapin VMware.VimAutomation.Core
Connect-VIServer myWinvCenter01
#...
Disconnect-VIServer -Force -Confirm:$false

vCenter Server Appliance

Credentials have to be stored once per Windows User:

New-VICredentialStoreItem -Host myVCSA01 -User myvCenterUser -Password myvCenterPassword
Add-PSsnapin VMware.VimAutomation.Core
Connect-VIServer -Server myVCSA01 -User myvCenterUser
#...
Disconnect-VIServer -Force -Confirm:$false
os/esxi/powercli.1441278458.txt.gz · Last modified: 2015-09-03 13:07 by root