Link to home
Start Free TrialLog in
Avatar of jondanger
jondanger

asked on

changing static routes on multiple windows pc's remotely.

I have a lan with 10 windows xp machines and 4 adsl routers.  If an adsl router goes down (like they occasionally do) i have to run round to each machine and manually change the route.

quickest way i've found for this is:
start -> run -> cmd
route change 0.0.0.0 mask 0.0.0.0 192.168.1.x

I've simplified this with a VB application, but it still involves physically going to each pc.

My question is, can this be done remotely?
Avatar of myin68
myin68
Flag of United States of America image

How do you have the network setup?  Are all the PCs pointing to all the DSL routers? If all IP addresses are static, why do you have to change them after the router reboots?
Avatar of Ciprian Lozonschi
I think with a script (bat or vbs) putted in a share on the network you cand resolve this.
Avatar of jondanger
jondanger

ASKER

i can't have all routers on all machines as there's some software running on those machines that gets confused if their's more than one static route.

The routers aren't generally the problem, it's the copper lines the adsl runs over, that and unavoidable ISP problems.

Yes i started with a .bat file, then that evolved into the VB app.  I have no way of invoking this manually though.  How could a bat or vbs file help?
Are the PCs and routers interconnected using a single switch, or are the PCs connected directly to the LAN ports on the routers?  

Could you setup 1 PC to share the internet connection and then configure multiple default routes on that PC (all the other PC would point to 1 PC for web access)?
Well my first ideea was to put users to execute a vbs script when an adsl router goes down. This could be a solution to your problem
But I remebered that exist PsExec (http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx). Try to see if this tool would help you
The batch file approach is the simplest. Create a batch file for each adsl router to become the default gateway

create adsl1.bat
route change 0.0.0.0 mask 0.0.0.0 192.168.1.1

create adsl2.bat
route change 0.0.0.0 mask 0.0.0.0 192.168.1.2
etc, one for each router

Put each of the four batch files on a share that all users can see or even drop them onto each desktop. The users can then double click any of the four batch files to select an alternative default gateway.


Imagine there's only one user, ie me.

Please stick to the original question, how do i change static routes on windows xp machines remotely?
Sorry, silly of me not to be psychic.

Enable each machine to accept remote desktop connections
RDP onto each box in turn
You have to setup Remote Access on each PC so you can use the Remote Desktop feature.  You'll still have to RDP into each machine to do this remotely.  You'd also need at least 1 static public IP address.
Only needs an external ip if the internet or something else is between the 'one person' and the other machines. If they are all local to each other then it would be fine. Could do the same with vnc etc as well.
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hmmm. Neat
JohnB: thanks, exactly what i was looking for, i knew their must be a way :)

keith: sorry for being a bit short.
It took me a while to realize that you could run full commands with switches, and not need the qoutes.....  

:^)
No problem. We all have moments where we get a bit short. Glad its resolved.

Keith