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 {
|
Do {
|
||||||
$poff = 'no'
|
$poff = 'no'
|
||||||
$VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM
|
$VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM
|
||||||
|
write-host $VMLIST
|
||||||
if ($VMLIST -notmatch '') {
|
if ($VMLIST -notmatch '') {
|
||||||
write-host "cycling thoruygh iscsi vms found"
|
write-host "cycling thoruygh iscsi vms found"
|
||||||
Foreach ($VM in $VMLIST) {
|
Foreach ($VM in $VMLIST) {
|
||||||
|
|||||||
Reference in New Issue
Block a user