Questions

Logon Script for adding a route

+
0 Votes
Locked

Logon Script for adding a route

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:
route add "DESTINY SUBNET" mask "SUBNET MASK NUMBER" "GATEWAY"

Thanks in advance.
  • +
    0 Votes
    irshadahmed_2005

    Alfa,
    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 :)

    +
    0 Votes
    Alfa11

    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.

  • +
    0 Votes
    irshadahmed_2005

    Alfa,
    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 :)

    +
    0 Votes
    Alfa11

    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.