![]() The parameters /F, /S and, /Q allow this command to force delete read-only files, delete the files from all subdirectories, and do so without asking for your confirmation, respectively. The easiest way to clear the print queue is to type the following in an administrative Command Prompt: net stop spooler del /Q systemrootsystem32spoolprinters. The del command deletes files or directories. In the first line, you use this command with the "stop" parameter to stop the Print Spooler. The net use command with parameters is used to connect and configure connections to shared resources, including printers. Open Notepad or any other text editor you prefer. In a new file, enter the code below: net stop spoolerÄel /F /S /Q "%windir%\System32\spool\PRINTERS\*.*" The batch file is going to include the three lines we used in the Command prompt windows so that once you run it, it'll run all three commands and clean up the Print Spooler. You can read our article on creating a simple batch file to make your first batch file. If your print jobs have a tendency to get stuck or if you just want to save time for the next time they might get stuck, you can write a batch file to clear the Print Spooler with a click. Writing a Batch File to Stop and Clear the Print Spooler That's it! You're Printer Spooler is nice and fresh now! You can go on ahead and queue prints again. In Command Prompt, enter the code below and press enter: net start spooler In the Admin Console, check Enable queue management is enabled in Tools > Settings > Printing Go to Tools > Release > Print Jobs Click.You can also skip this step and remove the files manually from Windows Explorer. ![]() Enter the code below and press enter: del /F /S /Q "%windir%\System32\spool\PRINTERS\*.*" You should get a response from Command Prompt saying that some files were removed. To work around this behavior, remove the read-only attribute and then delete the spool file from the C:WindowsSystem32SpoolPrinters folder, as described. In general I would say it is safe to restart the service on the fly. End users will notice but it wont be as bad as silently dropping a print job. Delete the print job files from the print spooler directory. 235 1 2 9 Add a comment 2 Answers Sorted by: 0 Restarting the print spooler generally doesnt drop print jobs it just stops accepting new ones.In Command Prompt, type the following line and then press enter to stop the spooler service: net stop spooler Once you enter this code, you'll get a response saying, "The Print Spooler service is stopping." and another one saying, "The Print Spooler service was stopped successfully." shortly after the first one.Right-click it and then select Run as administrator.From the Start Menu, search for Command Prompt. ![]() Just like the previous method, you will have to stop the spooler, delete the print jobs and then start it back up. ![]() Read our article on getting started with Command Prompt if you want to get more familiar with the Command Prompt. Stopping the Print Spooler With Command PromptĪs an alternative method, you can also stop the print spooler service with code lines in Command Prompt. With the print job removed and the Print Spooler back up, you can now start printing again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |