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

This commit is contained in:
2023-12-30 09:35:42 -06:00
parent 75116664f4
commit 586df3160f

View File

@@ -16,7 +16,7 @@ $ESXI = Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -P
Do {
$VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM
write-host $VMLIST
if ($VMLIST -ne '') {
if ($VMLIST -ne $null) {
write-host "cycling through iscsi vms found"
$poff = 'no'
Foreach ($VM in $VMLIST) {