Guest User

Untitled

a guest
May 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $VM_list = Get-VM | ForEach-Object {
  2.                         $snapshot_state = Get-Snapshot $_.Name
  3.                         if ( ($_.PowerState -eq 'PoweredOn') -and ($snapshot_state -ne $null) ) {
  4.                            "$_ `n"
  5.                            
  6.                         }
  7.                     }
Add Comment
Please, Sign In to add comment