Solved

bat script for auto persistent routes.

Posted on 2014-10-27
2
263 Views
Last Modified: 2014-10-27
I need to add persistent routes to numerous machines running CMD as administrator.

Is there anyway that this can be incorporated in a bat file?
0
Comment
Question by:wcgplc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
ID: 40406448
Well you can add permanent route using route add command, is that what you mean?  That would need running as the computer, i.e. as startup script if from group policy unless your users are all admins and UAC off etc.

route add -p x.x.x.0 mask 255.255.255.0 x.x.x.x

They should get added to the registry, last time I looked they were here:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip \Parameters\PersistentRoutes

Is there any reason you can't add the route on the user's default gateway, is this because their route points at an internet router and you need one or more routes pointing to different subnets or sites too?

Steve
0
 

Author Comment

by:wcgplc
ID: 40406454
thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question