SU for batch program - TechRepublic
General discussion
June 16, 2001 at 10:59 AM
thomasjhancock

SU for batch program

by thomasjhancock . Updated 25 years, 1 month ago

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!

This discussion is locked

All Comments