Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with WMI and DNS settings in script

Status
Not open for further replies.

chouck

MIS
Jan 30, 2005
32
US
Hi All,

I was wondering if anyone ever came across this situation, or if you might know how to do this.

Basically what I am trying to do is to change the client DNS settings to to not do a search domain suffix's.

I have gotten as far as changing the advanced dns settings from "Appending The DNS suffixes(in order) to changing it to "Append Primary and connection specific DNS Suffixes"

The problem I am running into is I would also like to enable and put a check mark in the box "Append Parent Suffixs of the Primary DNS Suffix"

This is the code aI have so far, and any help would be very much appreciated. Thanks

strpc = "."
set objwmisvc = getobject("winmgmts:" _
& "{impersonationlevel=impersonate}!\\"_
& strpc & "\root\cimv2")
set dnstest = objwmisvc.get("Win32_NetworkAdapterConfiguration")
arrDNSSuffixes = Array()
dnstest.SetDNSSuffixSearchOrder(arrDNSSuffixes)


Thanks again :)
 
Tsuji,

Thank You, Thank You, Thank You !! that is exatly what I was looking for!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top