batch file - gp problem

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
 
T

Tim Springston \(MSFT\)

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.
 
J

Jim Carney

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
 
J

Judith Herman [MSFT]

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top