Fix typo in hyper-v network configuration detection script

This commit is contained in:
Chris Roberts 2018-11-13 15:11:04 -08:00
parent 30473a4cb1
commit 9dd137633a
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