User Tools

Site Tools


os:esxi:powercli

This is an old revision of the document!


ESXi - PowerCLI

Connect

myWinvCenter01 myVCSA01

myvCenterUser 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.1441272969.txt.gz · Last modified: 2015-09-03 11:36 by root