Solved

bat script for auto persistent routes.

Posted on 2014-10-27
2
256 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

734 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