Solved

bat script for auto persistent routes.

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
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.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now