Reporting‎ > ‎

Listing VMs with Snapshots and Filtering

posted Jul 22, 2013, 10:24 AM by Kris Knight   [ updated Apr 3, 2015, 11:01 PM ]
This can be done hundreds of ways but here's my way...

Get-VM | Get-Snapshot | where {$_.Name.Contains("snapshot-") -ne "True" -and $_.Name.Contains("Veeam") -ne "True" -and $_.Name.Contains("vdm-initial-") -ne "True"} | select VM,Name,Description,Created,SizeMB | Export-Csv D:\SnapshotsFiltered.csv -NoTypeInformation -UseCulture
Comments