3 replies
by maelgwyn
I can think of 4 letters - DHCP. That could do what you want - by discovery then altering. However, I am not sure of the hive values. Sorry bout that.
Mael
by 4-toes
by leptor
Instead of trying to script it, I would try to use NETSH command. I do it when I take my laptop from home where I'm DHCP, to the office, where I'm using static.
{
netsh interface ip set address "Local Area Connection" static YOURIP YOURSUBNET YOURGATEWAY 1
}
this link will tell you exactly what you want also:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/netsh_wins_example.asp
remember if it wraps, take all the sapces out and pasteinto the browser. Good Luck, ~Leptor.
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending