Merge pull request #10410 from chrisroberts/f-hyperv-net-typo

Fix typo in hyper-v network configuration detection script
This commit is contained in:
Chris Roberts 2018-11-13 15:43:03 -08:00 committed by GitHub
commit 7750d6182d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ try {
foreach ($macaddr in $macaddresses) {
$macaddress = $macaddr.MacAddress -replace '(.{2})(?!$)', '${1}-'
$addr = Get-NetNeighbor -LinkLayerAddress $macaddress -ErrorAction SilentlyContinue | select IPAddress
if ($ip_address) {
if ($addr) {
$ip_address = $addr.IPAddress
if ($ip_address.Contains(".")) {
$ip4_address = $ip_address