Discussion Locked

If you script it they will come

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a user that goes back and forth between his network here in the office and his network at home. When he does he has to chagnge his IP address as well as his Default Gateway on his Windows 2000 Laptop. Is there a way that I can script this change so that he would only have to double click a batch file? Before you answer with somehing I didn't ask... DHCP is not an option, Third party solutions need to be free, and need to ONLY change these two settings, not edit the stack not do some automagic just change two IP settings. Now you know why I prefer a script, or better up some sort of network profile built into Windows 2000. (hardware profiles don't work unless he had two nics, and he doesn't)

3 replies

by dc1

THe IP settings are found in HKLM\system\CurrentControlSet\services\Tcpip\parameters\interfaces\{your interface number here}. You could configure the users two IP settings and export each one to his desktop so all he would have to do is double click the reg file to make the setting change. Granted this will not allow you to change just the two settings but it is an option.

by aaron_wurthmann

Nice! Thank you.
Here is what I am going to do now in case you are interested.

I am going to place the .reg files in a directory with some batch files that will run them will be. Then I am going to write some cool animation in flash and place itin his Start up folder. The animation will have two buttons to click on "home", "office" the buttons will call the batch files which in return call the reg files and then reboot, (if rebooting is nesessary, I don't know yet). I am also trying out Norton Mobile Essentials, but like I said if there is any automagic invloved I have to 86 it, VPN issues.

This discussion is closed to new replies.