1 Reply Latest reply on May 16, 2018 9:23 PM by LucD

    get-vm with no snapshots

    tdubb123 Master

      how do I find vms without any snapshots?

        • 1. Re: get-vm with no snapshots
          LucD Guru
          vExpertUser ModeratorsCommunity Warriors

          Try like this

           

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

           

          or like this

           

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

           

          Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
          2 people found this helpful