Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PC connected to 2 networks. One of the network has a domain that I want to logon to. At boot, these two networks both set a route to This breaks all network traffic on my box. This makes me not able to log on to the domain.

The first thing I do after I boot is run the following commands

route change mask
route add mask

This routes all domain-internal traffic through the correct NIC and all internet-traffic through the other NIC. Is there any way to set these routes so that they run before I'm asked to log in? This way the computer would find the domain-controller, and I can logon to the domain.

share|improve this question

Would a Computer Script help?

Create your 'route' script in a batch file, VBS or PowerShell

Launch gpedit.msc (remember the .msc)

Computer (Not user)
Windows Setttings

Press Add, and wire-up your script to computer startup.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.