I can use the following WMI query to determine any DNS servers that my machine can use:
SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration
However, the following query that I wrote to ignore null entries is invalid and I don't know why:
SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration WHERE DNSServerSearchOrder!=null
Is there a way to filter out null entries?
source share