Solved

bat script for auto persistent routes.

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

733 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