Jump to content

Recommended Posts

Posted

I need to run a batch file from the students desktop that stops and starts the spooler - but the script needs to be run with elevated privileges.

 

Is there a way?

 

Cheers

Posted

the issue is we have a room of PC's and randomly a class will log in and some won't have the printers installed - we suspect it's something to do with ms updates - a logon and off does not solve the issue - only a restart.

 

As that's an inconvenience during the lesson I wanted to test if a stop and start of the spooler would allow the printer script to run again...

Posted

Well if you wanted to do it as just a test could always use RUNAS in the BAT, but you'd still need to give permissions to run BAT/CMD etc

 

If you give the one machine you're testing on it permission to restart the service via GPO would be easier to test?

 

Steve

Posted

if its happening at logon then again schedule a script mto run at logon

net start spooler

as a scheduled task can run as administrator without the user needing elevating

Posted

It worked:

 

Computer Configuration > Policies > Windows Settings > Security Settings > System Services

 

Find Print Spooler in the list, define the setting and set to Automatic startup, then click Edit Security, add your Pupils group, and tick Start, stop and pause.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...