Very very close. ;-) Here's the working syntax. netsh interface ip set dns "Local Area Connection" dhcp register=primary This works. Thanks for your help, Glenn. I really appreciate it. Christoph _____ From: windows2000-bounce@xxxxxxxxxxxxx [mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of Sullivan, Glenn Sent: Wednesday, July 07, 2004 11:30 AM To: windows2000@xxxxxxxxxxxxx Subject: [windows2000] Re: GUID and remote registry change 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 ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________