kennysarmy Posted June 18, 2015 Posted June 18, 2015 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
Steve21 Posted June 18, 2015 Posted June 18, 2015 Does it need to be batch/elevated? Or could you just grant them permissions to restart it themselves via Task Manager etc Steve
sted Posted June 18, 2015 Posted June 18, 2015 could you not schedule a powershell script every 5 mins say that if the spoolers stopped start it?
kennysarmy Posted June 18, 2015 Author Posted June 18, 2015 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...
Steve21 Posted June 18, 2015 Posted June 18, 2015 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
sted Posted June 18, 2015 Posted June 18, 2015 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
kennysarmy Posted June 18, 2015 Author Posted June 18, 2015 This might help: http://www.edugeek.net/forums/windows-7/102335-allow-student-accounts-ability-restart-print-spooler-service.html
andydis Posted June 18, 2015 Posted June 18, 2015 in my experience when the print spooler starts playing up like this its because of low memory,
kennysarmy Posted June 18, 2015 Author Posted June 18, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now