Windows 10: Reset and Clear Print Spooler in Windows 10  

    Reset and Clear Print Spooler in Windows 10

    Reset and Clear Print Spooler in Windows 10

    How to Reset and Clear Print Spooler in Windows 10
    Published by Category: Hardware & Drivers
    22 Mar 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 32,223

    Show Printable Version 


    How to Reset and Clear Print Spooler in Windows 10


    The primary component of the printing interface is the print spooler. The print spooler is an executable file that manages the printing process. Management of printing involves retrieving the location of the correct printer driver, loading that driver, spooling high-level function calls into a print job, scheduling the print job for printing, and so on.

    A printer spooler enables storing multiple print jobs within a print queue where itís retrieved by the printer or print server. Print jobs are stored in a queue at the speed of the computer, then retrieved and printed at the speed of the printer. Multiple processes can send print jobs to the spool without waiting, and can then perform other tasks, while the "spooler" process operates the printer.

    If you have a stuck print job in the print queue, you can clear and reset the print spooler to remove the stuck print job.

    This tutorial will show you how to reset and clear the print spooler to remove print jobs in Windows 10.

    You must be signed in as an administrator to reset and clear the print spooler.


     CONTENTS:

    • Option One: To Reset and Clear Print Spooler using a BAT file
    • Option Two: To Reset and Clear Print Spooler in Command Prompt





    Reset and Clear Print Spooler in Windows 10 OPTION ONE Reset and Clear Print Spooler in Windows 10
    To Reset and Clear Print Spooler using a BAT file

    1. Click/tap on the Download button below to download the .bat file below.

    Reset_and_clear_print_spooler.bat

    download

    2. Save the .bat file to your desktop.

    3. Unblock the .bat file.

    4. Run the .bat file.

    5. When prompted by UAC, click/tap on Yes to approve the .bat file to run as administrator.

    6. You will now see a command prompt flash and quickly open and close to reset and clear the print spooler.






    Reset and Clear Print Spooler in Windows 10 OPTION TWO Reset and Clear Print Spooler in Windows 10
    To Reset and Clear Print Spooler in Command Prompt

    1. Open an elevated command prompt.

    2. Enter the commands below into the elevated command prompt one at a time, and press Enter after each command. (see screenshot below)

    net stop spooler

    DEL /F /S /Q %systemroot%\System32\spool\PRINTERS\*

    net start spooler

    3. When finished, you can close the elevated command prompt if you like.

    Name:  clear_print_spooler_command.png
Views: 31142
Size:  27.7 KB


    That's it,
    Shawn


  1.    22 Mar 2018 #1

    Shawn's method works, but I think there is an easier (1-click) way. I cobbled this together from web research, so I don't deserve any credit (except perhaps for creative laziness).

    From Windows 10 PowerShell, I created a ps1 file with two commands in it:
    net stop spooler
    net start spooler

    Then I created a batch file with a single command in it:
    PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -File ""c:\users\[insert your username]\[insert the path to the ps1 file]\PrintSpooler.ps1""' -Verb RunAs}";

    Then, because I really am lazy, I created a batch file that I could attach to the Quick Launch bar:
    explorer.exe "C:\Users\[insert your username]\[insert the path to the ps1 file]\Print Spooler.bat"

    You can then simply left-click on the Quick Launch bar icon for that last file, and your print spooler will reset. You need not invoke administrator level. This method does not seem to require the second line of code from the Administrator Command Prompt box above, although wiser heads than mine (not hard to find those) may say that I'm just accumulating worthless files by not dumping them. If that turns out to be the case, edit the ps1 file to insert the suggested command.

    I am sure that in the fullness of time, Microsoft will come up with something so that this fix does not work, because that's what Microsoft does. But it works for now.
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 32,223
    64-bit Windows 10 Pro build 18242
    Thread Starter
       22 Mar 2018 #2

    Thank you for the addition WTig3ner, and welcome to Ten Forums. :)
      My ComputersSystem Spec

  3.    22 Mar 2018 #3

    I use the same commands but wrapped in an AutoHotkey script which takes care of the elevation and provides an onscreen message:

    Name:  clear_print_queue.jpg
Views: 23573
Size:  22.9 KB

    Code:
    ; Based on https://autohotkey.com/boards/viewtopic.php?f=6&t=24987&hilit=print+queue
    #SingleInstance force ; Ensure only one instance at a time
    #NoTrayIcon ; Surpress the default Notification tray icon
    
    ; Prompt to 'Run as Admin', i.e. show UAC dialog
    If Not A_IsAdmin
    {
       Run *RunAs "%A_ScriptFullPath%"  ; Requires AHK v1.0.92.01+
       ExitApp
    }
    
    SplashImage,, W300 H120,, `nPlease wait...`n`nThe Printer queue is being cleared.`n`n This may take up to 10 seconds., Clear Printer Queue ; Show user message to inform what's happening
    Runwait, %comspec% /c "net stop spooler",, hide ; Stop the Print Spooler
    
    ; Windows has its Print Queue located at the path used below.
    Runwait, %comspec% /c "del C:\Windows\System32\spool\printers\* /Q /F /S",, hide ;  Delete all files in the Print Queue (using [Q]uiet mode, [F]orce and clear [S]ub-folders switches)
    
    Runwait, %comspec% /c "net start spooler",, hide ; Restart the Print Spooler
    splashimage, off ; Close the information message
    
    ExitApp

    I've added this as a right-click option using a REG file:
    Name:  clear print queue.jpg
Views: 23596
Size:  21.9 KB

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Clear Print Queue]
    "Icon"="C:\\Windows\\System32\\shell32.dll,222"
    "MUIVerb"="Clear Print Queue"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Clear Print Queue\command]
    @="explorer /root,\"C:\\Support\\ClearPrinterQueue.ahk\""

    Hope this helps...
      My ComputerSystem Spec


 

Tutorial Categories

Reset and Clear Print Spooler in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
Print Spooler Service Stopping in Drivers and Hardware
What can I do to keep the print spooler service from stopping all the time ? I have to restart it almost daily. Thanks in advance for assistance.
Print Spooler in Drivers and Hardware
My update to Windows 10 from Windows 7 went without problems but none of the three printers attached to my computer worked and I have been struggling with the problem over the last two weeks. There is another long thread "Can't connect to Printer"...
The print spooler chokes on both of my Windows 10 machines when trying to deal with certain pdf files. For instance when I tried to print https://thebasscase.files.wordpress.com/2013/01/so-what.pdf via my browser (Chrome), it printed the first 6...
Dear all, I'm stuck with my print spooler that doesn't want to start. It was working fine before the upgrade. I get the following message when going to the "view services on local computer" Windows could not start the Print Spooler service on...
I've had Windows 10 since Monday, I haven't been able to print anything, even making PDF files because the print spooler will not start. Or more accurately, it will start and then when you try to add a printer, it will stop. When I run the printer...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:41.
Find Us