I need some help coming up with the script to check these snapdive snapshots for ones older than 30 days and deleteing them. I can't change naming conventions. The naming convention is adding get-date -format yyyyMMddHHmmss to "windows-". Any thoughts?
Not sure if you figured this out already but for anyone else... the lines below will get the current date, list volumes, filter out offline volumes and ignore read-only volumes, get each of their snapshots older than 30days where there is no dependency(clone, etc) on the volume and then finally remove the snapshots. Hope that helps.