Tom, The article is incorrect. It is possible to programmatically push a DNS suffix search list to remote PC's. The following code will do it for you.
arrDNSSuffixes = Array("suffix1.com", "suffix2.com", "suffix3.com",
"suffix4.com")
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration")
objNetworkSettings.SetDNSSuffixSearchOrder(arrDNSSuffixes)
This code should work as is, provided you find a way to populate the
strComputer value. In my experience, it takes about 6 seconds to connect to a
remote computer and make the changes.
-Andrew
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kern, Tom
Sent: Thursday, September 22, 2005 1:06 PM
To: [email protected]
Subject: [ActiveDir] dns suffix search list
I know this was discussed on the list earlier(can't seem to find it), but is
this article correct and are these the only ways to programmatically alter the
dns suffix search list?
http://support.microsoft.com/kb/q275553/
Is there an easy way to do this for many computers, say from a text file?
Thanks
[EMAIL PROTECTED] Vry&-4ibb
smime.p7s
Description: S/MIME cryptographic signature
