Link to home
Create AccountLog in
Avatar of Aaron Street
Aaron StreetFlag for United Kingdom of Great Britain and Northern Ireland

asked on

DNS suffix

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
Avatar of khammad66
khammad66

The best way is to use this command

netsh interface dump >ipconfig.txt

Edit ipconfig.txt

then this command

netsh exec.txt
ASKER CERTIFIED SOLUTION
Avatar of Rob Williams
Rob Williams
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Aaron Street

ASKER

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
you life saver rob! I been hunting for that setting for months and i sure i check there before !!

thank you
Glad to be of assistance. Thanks DevilWAH.
Cheers !
--Rob