VMWare Delete all snapshots via powershell

This will recursively delete all snapshots on the cluster with a name like -name “Whatever*”

Set-ExecutionPolicy RemoteSigned & ‘C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1′ Connect-VIServer 172.16.17.18 -User username@yourdomain -Password Pa55w0rd get-snapshot -vm * -name “Data Store*” | remove-snapshot

Jeremy Tirrell

Read more posts by this author.