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