Solved

DNS suffix

Posted on 2008-06-10
5
1,040 Views
Last Modified: 2011-10-19
Hi,

I need to find a way of updating the informationin the picture below i have highlighted, with out having to log on to the PC. So i am really looking for a command line, netsh or script.

Now I can't do this with DHCP as on many pc's this has been set manualy and so over rides anything set by the DHCP server. And I cant use a reg edit becasue the setting in there is different on different PC's, the registry key below is what needs to be changed but the interface id is differnet on all the PC's

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{506D183F-D554-476B-ADEF-3159307B0863}]

I have a lot of PC's to do (200 ish) so if any one has any ideas about how to set these values remotly I would be most greatfull. Even removing them and setting them as default would be ok. (so i can set them via DHCP)

the PCs are all either XP or win2000.

Thank you

Aaron Street
ipconfig.png
0
Comment
Question by:Aaron Street
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:khammad66
ID: 21750729
The best way is to use this command

netsh interface dump >ipconfig.txt

Edit ipconfig.txt

then this command

netsh exec.txt
0
 
LVL 77

Accepted Solution

by:
Rob Williams earned 500 total points
ID: 21750957
To the best of my knowledge there is no option to do this with netsh. It is usually done with DHCP, but there is a Microsoft utilities which I have never tried, which is supposed to create the necessary registry entries
http://support.microsoft.com/kb/275553

My preference though would be to use group policy:
computer configuration | administrative templates | network | DNS client | DNS suffix search list
0
 
LVL 16

Author Comment

by:Aaron Street
ID: 21751421
Rob, The dns suffix search list will not change the DNS suffix for this connection setting though.

And like i mentioned we do generaly use DHCP for all the settings. however these are ones that have long ago been set manualy so DHCP makes no difference..

however having now opened that GP I see the one i want is also right there!! remind my self to look before I reply ;) I wanted the connection specific DNS suffix setting. I sure i check before but maybe not!

Cheers for that sir.. think thats fixed it!

and like you say netsh can't change this setting.. tried that before
0
 
LVL 16

Author Closing Comment

by:Aaron Street
ID: 31465684
you life saver rob! I been hunting for that setting for months and i sure i check there before !!

thank you
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 21751618
Glad to be of assistance. Thanks DevilWAH.
Cheers !
--Rob
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
An article on effective troubleshooting
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question