General discussion

Locked

How to create a Login Script - Windows 2003 Server

By tcombs ·
I need help..lol
I need to figure out how to create a login script for several users that need to have a route added.

network layout -
I have a cisco 5520 firewall that is the main default gateway - 192.168.140.1

All the users use that gateway.

However, we recently implemented an MPLS and that router sits behind the default gateway, it's IP address is: 192.168.142.17 ..... This was put into place because we have a few users that must connect to our HQ in Japan. There are a few applications that only they need access to.

Initially I switched all the users default gateway to .17 , and used routes on the router to point all the internet traffic and anyone that didn't need access to HQ to go out through .1 . That worked fine, but then we started having issues internally with applications across the network.

So rather than change everything to accommodate just a few users, I switched it back to default to .1 .....

Now, I need to create a logon script that adds routes to those 5 users.
For example -
If user needs to access 192.168.8.10 , they have to go through the MPLS at 192.168.140.17 .

Please help. I know how to go in and add a route using a command prompt, but obviously, I don't want to do this for all the routes, even though there's only 5 users, everytime they restart their computer.

I've never created a logon script, so if you can give me an example - THAT WOULD BE MUCH APPRECIATED..lol

This is a great forum and I know there's someone that can help! Thanks in advance!

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Use a batch file and apply in GP

by Monice In reply to How to create a Login Scr ...

Create a .bat file with the routes you need to add. ie..

@Echo Off
ROUTE ADD -p 192.168.8.10 MASK 255.255.255.0 192.168.140.17 metric 1

Apply the script in GP under User Configuration ?> Windows Settings ?> Scripts? for Logon/Logoff user events

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums