Tuesday 28 June 2016

How to find the VMs with Snapshot in VMware?

Or, Getting List of Virtual Machines having snapshot.
Or, PowerCLI command to get the VMs with Snapshot in VMware.

Solutions:

To display the list of VMs, on CLI console, having snapshot:
------------------------------------------------------------------------------------------------
get-vm | get-snapshot | format-list
------------------------------------------------------------------------------------------------

To export the list of VMs, in D:\ drive, having snapshot:
------------------------------------------------------------------------------------------------
get-vm | get-snapshot | format-list | out-file D:\VMsnapshotList.txt
------------------------------------------------------------------------------------------------

Reference Screenshot:

No comments:

Post a Comment