Friday, June 29, 2012

Snapshots

Just wanted to share couple of 1 liners related to Snapshots listing and deletion


List all the Snapshots
--------------------------------------

Get-VM | Get-Snapshot


Delete all the Snapshots
------------------------------------------

$snapshot = Get-VM | Get-Snapshot
Remove-Snapshot -Snapshot $snapshot -RemoveChildren -Confirm:$False

No comments:

Post a Comment