Get-VM | Where-Object $_.Snapshot -and $_.Snapshot.Count -gt 0 | ForEach-Object Remove-Snapshot -VM $_ -Snapshot $_