Friday, July 8, 2005

Netsh

Just discovered the joys of netsh

This is a tool to allow changing network settings on local or remote computers via the command line. I just did a small sample script to change DNS settings on the local adapter:

netsh interface ip add dns "local area connection" xxx.xxx.xxx.xx1
netsh interface ip add dns "local area connection" xxx.xxx.xxx.xx2

More info on this can be found here:

Microsoft Link

http://www.computerhope.com/netsh.htm

No comments:

Post a Comment