Update iscsi-sys-vm-shutdown-verify.ps1
This commit is contained in:
@@ -22,6 +22,7 @@ Do {
|
||||
Foreach ($VM in $VMLIST) {
|
||||
$VMI = Get-VM $VM
|
||||
if ($VMI -eq $null -Or $VMI.PowerState -match 'PoweredOn') {
|
||||
$poff = 'no'
|
||||
break
|
||||
} else {
|
||||
$poff = 'yes'
|
||||
|
||||
Reference in New Issue
Block a user