Every now and then you might need to delete a bunch of snapshots from one VM or maybe even 100 VMs. Doing that manually is too much clicking for me personally. There are a few ways to search, either by VM name, Folder, or Cluster.
1 2 3 4 5 |
Get-Folder $name | Get-VM | Get-Snapshot | Remove-Snapshot -confirm:$false -RunAsync Get-Cluster $name | Get-VM | Get-Snapshot | Remove-Snapshot -confirm:$false -RunAsync Get-VM $name | Get-Snapshot | Remove-Snapshot -confirm:$false -RunAsync |
For more information on Remove-Snapshot click here
Hope that helps!