Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214147

Re: Issues with powercli script to create/delete snapshots

$
0
0

and where in your Delete script does it specify the seven day rule?

 

#############################################################

# Delete any Snapshots older than 7 days regardless of name #

#############################################################

ForEach ($VM in $VMs)

{

Get-Snapshot -VM $VM | Where-Object {$_.Created -lt $Stale} | Remove-Snapshot -Confirm:$false

}


Viewing all articles
Browse latest Browse all 214147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>