win_dns_client failing on 2008R2 SP1 (Fixes #25216) (#28172)

pull/28189/merge
kletiz 7 years ago committed by Jordan Borean
parent c8124ca39a
commit a42b81132e

@ -135,7 +135,13 @@ Function Get-DnsClientMatch {
$current_dns_v4 = ($current_dns_all | Where-Object AddressFamily -eq 2 <# IPv4 #>).ServerAddresses $current_dns_v4 = ($current_dns_all | Where-Object AddressFamily -eq 2 <# IPv4 #>).ServerAddresses
If ($current_dns_v4 -eq $null) {
$v4_match = $False
}
Else {
$v4_match = @(Compare-Object $current_dns_v4 $ipv4_addresses).Count -eq 0 $v4_match = @(Compare-Object $current_dns_v4 $ipv4_addresses).Count -eq 0
}
# TODO: implement IPv6 # TODO: implement IPv6

Loading…
Cancel
Save