Hi All ,
I got a tasks to list all snapshots recursively (folder depth upto 10) and delete all the snapshots older than 7days .
Can i get help on this ?
Thanks in advance
-prashnth
You mean something like this
Get-VM | Get-Snapshot | where{$_.Created -lt (Get-Date).AddDays(-7)} | Remove-Snapshot -confirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference