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

This commit is contained in:
2023-12-30 09:29:46 -06:00
parent 2f1ba594f9
commit 838af965ad

View File

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