batch file - gp problem

  • Thread starter Thread starter jim carney
  • Start date Start date
J

jim carney

i am trying to run a batch file to shut down the print
spooler service.the file itself works,but only if the user
is an admin. is there a group policy i can change that
will allow users to run the batch file. thank you
 
You may consider calling running that BATCH to run from an AT command if
possible. This will get it to run in the System account context, and
hopefully do the trick.
 
Tim, how do i do that? what is an AT command? this kind of
stuff is totally new to me, so i am not at all familar
with it.
thank you
jim
 
Jim,
If you are trying to run this batch file through group policy then you want
to apply the script as a startup script instead of per user. This will then
be run with system privileges and will work.

The at command is run from the command line and will start up a batch job at
a set time. To see how it works run "AT /?" Unfortunately, you still need
to have administrator rights on the machine to run the AT command.

Hope this helps.
Judith Herman [MSFT]
 
Back
Top