Get-snapshot and the condition if

This post was originally published on this site

Hi gurus!

Please help

I get all tree of snapshots:

 

get-snapshot myvm

Name                 Description                    PowerState

—-                 ———–                    ———-

SNAP00          No Desc          PoweredOff

SNAP00          No Desc          PoweredOff

SNAP00          No Desc          PoweredOff

 

In this case all names are identical!

 

So the condition:

If all names in snapshots tree are identical – delete all snapshot!

If not – do nothing.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.