diff --git a/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 b/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 index a36d888f..0f849a7d 100755 --- a/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 +++ b/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 @@ -17,12 +17,14 @@ Do { $poff = 'no' $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM if ($VMLIST -notmatch '') { + write-host "cycling thoruygh iscsi vms found" Foreach ($VM in $VMLIST) { if ((Get-VM $VM).PowerState -notmatch 'PoweredOn') { $poff = 'yes' } } } else { + write-host "no iscsi vms found" $poff = 'yes' } } Until ($poff -match 'yes')