Techibee.com

PSTip# Get snapshots lst of a VM in VMware using Powershell

If you have a VMware environment and would like to use VMware Powershell CLI to get list of Snapshots of a given VM, use the below command.

Get-VM -Name "myVM1" | Get-SnapShot

This lists the snapshot name, description and the state of snapshot. Needless to say that you need to connect to you virtual center server before executing this command. Connection can be established by using

Connect-VIServer -Server MYVC1

Hope this helps.

Exit mobile version