Sidebar

vmware:powercli_commands

This is an old revision of the document!


PowerCLI Commands

Connect to VMware ESXi or vCenter

Connect-VIServer -Server 10.240.240.240 -User root -Password 'str0mtelecom'

Create Snapshot

Get-VM deb5-powecli | New-Snapshot -Name "Demo" -Description "Sample snapshot"

List All Snapshots to VM

Get-VM deb5-powecli | Get-Snapshot

Remove all Snapshots from VM

Get-VM deb5-powecli | Get-Snapshot | Remove-Snapshot -confirm:$false

Revert to Snapshot

Set-VM -VM  deb5-powecli -Snapshot Demo -confirm:$false
vmware/powercli_commands.1551253947.txt.gz · Last modified: 2019/02/27 08:52 by admin