VMware Cloud Community
tdubb123
Expert
Expert

get-vm with no snapshots

how do I find vms without any snapshots?

1 Reply
LucD
Leadership
Leadership

Try like this

Get-VM | where{-not (Get-Snapshot -VM $_)} | Select Name

or like this

Get-VM |where{-not $_.ExtensionData.Snapshot} | Select Name


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference