Sep 26 2010 12:59PM GMT
Posted by: Richard Siddaway
DNS, Network
WMI and Network Adapters: 5
Posted by: Richard Siddaway
Does a machine have problems communicating on the network? Then one troubleshooting step is to check the DNS servers it is using
|
001
002 003 004 |
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName "." |
where {$_.DNSServerSearchOrder} | select Description, IPAddress, DNSServerSearchOrder |
Get the instances of the NetworkAdapterConfiguration class for the computer and filter out those that don’t have a DNSServerSearchOrder set. Display the results.
If you get nothing back then no NICs have DNS settings




