Blank DNS Suffix Search Order from WMI



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=impersonate}!\\" &
sComputer & "\root\default:StdRegProv")
sKeyPath = "SYSTEM\ControlSet001\Services\Tcpip\Parameters"
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.

.



Relevant Pages

  • Re: "ghost" message sent each send/recieve
    ... right there in the error message - "MAIL FROM is not allowed to be empty". ... *requires* mail servers to accept such mail. ... > using outlook 2003 with Office Professional 2003. ... > My outbox is EMPTY, and I get this every send/receive. ...
    (microsoft.public.outlook)
  • Re: Back to Classic (for one job)
    ... The 'servers' folder is empty, and the Appleshare prep file, when looked ... system disks. ...
    (uk.comp.sys.mac)
  • RE: URGENT!Problems with win2000 & win2003
    ... but it's empty ... "James Smith" wrote: ... > Network Properties opened on one of our servers, 3 hours later, we're up to ... Prev by Date: ...
    (microsoft.public.windows.server.general)
  • cacls applied to empty directory
    ... hi I have a directory on a number of servers I want protected. ... currently the dir is empty so using CACLS I want to set the acls via: ... Admin Notes is the directory I want protected. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Password, remembering
    ... posting this to one of the Outlook newsgroups. ... > Everytime I boot up and open Outlook I ... > servers screen, the password box is empty again. ...
    (microsoft.public.windowsxp.security_admin)