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
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