Update iscsi-sys-vm-shutdown-verify.ps1
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user