Update iscsi-sys-vm-shutdown-verify.ps1

This commit is contained in:
voltron committed 2023-12-30 09:45:02 -06:00
1 parent 6f64defa7d
commit 7fd8d702e8
1 file changed
+2 -3
@@ -20,9 +20,8 @@ Do {
write-host "cycling through iscsi vms found"
$poff = 'no'
Foreach ($VM in $VMLIST) {
if ((Get-VM $VM) -eq $null) {
break
} elseif ((Get-VM $VM).PowerState -match 'PoweredOn') {
$VMI = Get-VM $VM
if ($VMI -eq $null -Or $VMI.PowerState -match 'PoweredOn') {
break
} else {
$poff = 'yes'