General discussion


Change DNS settings Script

By SimpleJo ·

I need help with a simple log-on script that will change the Pri/Sec DNS setting in the network properties on 150+ Windows XP stations joined to a W2K3 network with AD. The users log on with basic user rights.



This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Batch file

by house In reply to Change DNS settings Scrip ...

netsh interface ip set dns /?

you can take it from here...

...ah well - here ya go....

netsh interface ip set dns "Local Area Connection" static primary

edit the ip address and primary/ secondary tag accordingly

Collapse -

by SimpleJo In reply to Batch file
Collapse -

No problem

by house In reply to

I use the "netsh" command line utility quite often. There is something technical about it that inspires me in this GUI saturated IT world. Maybe I should've been a Unix admin. :)

Related Discussions

Related Forums