Correct HTTPIP == FALSE on HyperV builder

This commit is contained in:
WilliamB 2019-07-17 03:41:41 -05:00 committed by Megan Marsh
parent 42f7cbc30b
commit f1d782e6f4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ param([string]$switchName, [int]$addressIndex)
$HostVMAdapter = Hyper-V\Get-VMNetworkAdapter -ManagementOS -SwitchName $switchName $HostVMAdapter = Hyper-V\Get-VMNetworkAdapter -ManagementOS -SwitchName $switchName
if ($HostVMAdapter){ if ($HostVMAdapter){
$HostNetAdapter = Get-NetAdapter | ?{ $HostVMAdapter.DeviceId.Contains($_.DeviceID) } $HostNetAdapter = Get-NetAdapter | ?{ $_.DeviceId -eq $HostVMAdapter.DeviceId }
if ($HostNetAdapter){ if ($HostNetAdapter){
$HostNetAdapterIfIndex = @() $HostNetAdapterIfIndex = @()
$HostNetAdapterIfIndex += $HostNetAdapter.ifIndex $HostNetAdapterIfIndex += $HostNetAdapter.ifIndex