2011-05-20

Find VM snapshots

VM snapshots can eat up a lot of storage space. Sometimes snapshots get created automatically by backup software but are not automatically deleted.

A little PowerCLI script to find virtual machine snapshots in a vSphere cluster.

Get-VM | Get-Snapshot | Select VM,Name,SizeMB,Created | Sort SizeMB -Desc

PS: The size is interesting, also the age of the snapshot, the name sometimes makes it clear if it was a manually or automatically created snapshot.

No comments:

Post a Comment