Automation

 View Only
Expand all | Collapse all

get-vm with no snapshots

  • 1.  get-vm with no snapshots

    Posted May 16, 2018 09:40 PM

    how do I find vms without any snapshots?



  • 2.  RE: get-vm with no snapshots

    Posted May 17, 2018 04:23 AM

    Try like this

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

    or like this

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