Networking Forums

Networking Forums > Computer Networking > Windows Networking > Blank DNS Suffix Search Order from WMI

Reply
Thread Tools Display Modes

Blank DNS Suffix Search Order from WMI

 
 
Gene
Guest
Posts: n/a

 
      04-04-2008, 01:50 PM
I am trying to get all the ipconfig info from hundreds of servers to compare
the settings. The servers are all Windows 2000 or 2003.

For 99% of the servers, all of the information is returned EXCEPT the DNS
Suffix Search Order. Only a few servers actually return the it.

I am using vbscript to query WMI:

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & sComputer & "\root\cimv2")
Set colAdapters = objWMIService.ExecQuery _
("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled =
True")

Then this is empty: objAdapter.DNSDomainSuffixSearchOrder

So I had the script have a backup plan, if it is empty, then query the
registry:

Set oReg = GetObject("winmgmts:{impersonationLevel=impersonat e}!\\" &
sComputer & "\root\default:StdRegProv")
sKeyPath = "SYSTEM\ControlSet001\Services\Tcpip\Parameter s"
sValueName = "SearchList"
oReg.GetStringValue HKEY_LOCAL_MACHINE, sKeyPath, sValueName, sValue

That also comes back empty.

But if I go to the server and do ipconfig /all, there are definately several
DNS Suffixes in the search order.

So where else is that information kept?

Thanks in advanced for any help.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Suffix Search Order Buck Turgidson Windows Networking 3 09-08-2009 01:59 PM
RRAS and FQDN ('connection-specific dns suffix' is blank) Jim in Arizona Windows Networking 8 06-19-2009 03:17 AM
Domain Suffix Search Order. Windows Server 2003 R2 DNS,DHCP averied Windows Networking 1 03-26-2008 07:35 PM
DHCP Options - 135 Domain suffix search order Ricky Windows Networking 0 09-14-2006 10:37 PM
Set DNS Suffix Search List using DHCP Wayne Gore Windows Networking 2 05-31-2006 06:42 AM



1 2 3 4 5 6 7 8 9 10 11