Discussion Locked

SU for batch program

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to use SU for the command "instsrv". I am trying to load a batch file when someone logs on to their local drive, put all the things I need for them to be able to do (ex. net time, delprof,etc) that they don't normally have rights to, but when i put the instsrv command into their logon script, it only says "The user doesn't have enogh priviladge". I want to have SU or another program to give them enough privladges to do this but not reveal any security passwords etc. This is an example of my test script that FAILED!:

copy \\primary_server\NETLOGON\servicescript.bat c:\temp
instsrv servicescript c:\temp\servicescript.bat

Also, another quick question. Looking at the script above, will the computer automatically replace the file "servicescript.bat" at c:\temp? I want to be able to edit it on the server, and when someone logs on it will automatically copy the new batch file and run it. I know it will only run instsrv 1 time, but if I keep changing the batch file that it is reading off of, will it impliment the changes? Thanks for everyone's help!

3 replies

by antsmac

Hi,

You need to install the SU service before you can use it on a computer. To do this you need to logon to the computer with admin rights and use the suss.exe program...
Suss.exe -install
Once you have done this then your user will be able to use SU.exe

Yes the file will be copied from the server each time.

HTH
Ants

by thomasjhancock

I don't have the file suss.exe and also the goal is to not have to ever log on to the local computer as a admin. I want to program it like:
su (program name to run)

by thomasjhancock

i don't have ther program suss.exe and the goal is to not have to go around to every computer and log on as administrator, i want to use su in a script batch file to automatically run but i don't know the right options.

This discussion is closed to new replies.