Logon Script for adding a route

By Alfa11 ·
Hey guys, I want to add a route to some of my users. The problem is that as they don't have administrator permissions I can't do it through a logon.bat file configured in their profile.
I think I have to go with a VBScript pushed through a GPO. My problem is that I couldn't find something useful to do this, the command I want to run is like this:

Thanks in advance.

This conversation is currently closed to new comments.

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

All Answers

Collapse -

RE: Logon Script for adding a route

by irshadahmed_2005 In reply to Logon Script for adding a ...

You can use a batch script with the condition for the users using if command.
And if the users dont have admin rights then you can use "LSRUNASE".
Its a utility which will run the batch file with another user rights. So you can use the LSRUNASE with the users permission which has admin rights.
You can make the list of users and put them in a txt file and then put th condition using if command in batch file stating that if the user name is present in the txt file then the script will execute.
Its EASY :)

Collapse -

Thanks but...

by Alfa11 In reply to RE: Logon Script for addi ...

Thanks for the late but good reply. I finally managed to achieve this by applying a .bat file with the route command in the machine GPO, so it runs with administrative privileges.

Back to Desktop Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums