bat script for auto persistent routes.

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?
wcgplcAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
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
 
wcgplcAuthor Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.