Home Tips & Resources Script restart print spooler
 
Script restart print spooler PDF Print E-mail
Written by Travis Nuske   
If you feel this tip has saved you time or effort, please consider buying us a cuppa coffee to keep things going!

Quick script to automatically restart the print spooler service, and delete any corrupt or stuck print jobs in the process.

Copy the text below into a notepad file, and save it as restartPrintSpooler.bat

net stop spooler
del /q c:\windows\system32\spool\PRINTERS\*
net start spooler

The script can be used to restart just about any service - you can get the name of the service using the following method:

Open the services windows - Click Start -> Run, type services.msc

Right click on the service you wish to restart in your script and have a look at the "Service Name". In the script above the service name is "spooler"

 

 

Last Updated on Monday, 13 September 2010 12:17
 

Add comment


Security code
Refresh