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

This commit is contained in:
2023-12-30 09:30:30 -06:00
parent 838af965ad
commit cf3f3660b5

View File

@@ -17,7 +17,7 @@ Do {
$poff = 'no'
$VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM
write-host $VMLIST
if ($VMLIST -notmatch '') {
if ($VMLIST -ne '') {
write-host "cycling thoruygh iscsi vms found"
Foreach ($VM in $VMLIST) {
if ((Get-VM $VM).PowerState -notmatch 'PoweredOn') {