dafyre2010
Contributor
Contributor

I have a powershell script that I've cobbled together from various sources.

https://gitlab.com/dafyre/powershell-utils/-/blob/master/VMware/snapshotCleanup.ps1

It will clean up snapshots based on a daily/weekly time phrase if the snapshot description matches "Daily Snapshot" or "Weekly Snapshot"

or you can pass in a parameter of what you want to match on.

This does require the VMware PowerCLI to work.  You must also be connected to the vCenter Instance(s) that you want to manage.  If you use the -daily or -weekly switches, create a file daily-list.txt or weekly-list.txt and enter one VM per line.

The script won't actually do anything if you don't run it with the -live parameter.

It's not completely automated, but it's better than having to sit and baby sit it.  If there's any questions, let me know.