[windows2000] Re: GUID and remote registry change

  • From: "Sullivan, Glenn" <GSullivan@xxxxxxxxxxxxxx>
  • To: <windows2000@xxxxxxxxxxxxx>
  • Date: Wed, 7 Jul 2004 13:29:49 -0400

Assuming that you can get the name of the Network Connection, you can
use netsh.
 
example:
netsh set dns name="Local Area Connection" source=dhcp register=primary
 
You can get a list of the connections available by using this command:
netsh interface show interface
 
So, put the two together and you get:
 
for /f "skip=3 tokens=2,3" %i in ('netsh interface show interface') do
if "%i"=="Dedicated" netsh set dns name="%j" source=dhcp
register=primary
 
If you are going to put it in a batch file, double up on the percent
sign...
 
Untested, of course, and this will set that setting for all Dedicated
interfaces.
 
HTH,
 
Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc. 
 

________________________________

From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of Puetz, Christoph
Posted At: Wednesday, July 07, 2004 12:07 PM
Posted To: Windows 2000
Conversation: [windows2000] GUID and remote registry change
Subject: [windows2000] GUID and remote registry change


I need to turn on "Register this connection's addresses in DNS" in the
TCP/IP settings of all my client machines. Problem I am running into is
that this setting in the registry is always under a different GUID for
the interface under "CurrentControlSet". I am having difficulties
specifying this location via script. :-(
 
Any idea how I can change this setting on all my clients via script?
 
Thanks.

Christoph

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Other related posts: