Indemnity83



HOWTO: Remove a stuck print job in Windows

Jun 9th 2008
6 Comments
 respond
 trackback

Paper jam?! I'll give you a #$@% paper jam!  - By Legozilla

I have often recived a call, or gone out to a site where there is a print job stuck in the print que on the server that is holing up everything. You can try to cancel the job at the printer, or at the server. You’ve tried to restart the server and restart the printer but the print job just sits there staring at you the whole time. While not quite as bad as upsetting as the famed “PC LOAD LETTER” error it can still make you want to chuck your printer and/or computer off the roof.

So how do you purge the vexing print que? Its actually easier than you might think. It only takes three lines typed in to your command prompt (you can do it through the Windows GUI too, but its easier this way).

First though, before we can execute anything you need the command prompt. And while this tutorial works for both Windows XP and Vista, the two have different ways of getting to the command prompt with the privileges we need.

Windows XP

  1. Log into the computer with a user that has administrative privileges (most accounts do, so if your not sure just use the account you normally log in with).
  2. Click on Start -> Run
  3. Type “cmd” in the run box and click OK

Windows Vista

  1. Click on the start orb and type “command” in the search box
  2. Once you see command prompt in the list of results, right click on it and select “Run as Administrator
  3. You will likely be prompted for an administrator confirmation, or a password. Type your password or click Continue.

Clear the Print Que

Now that you’re at the command prompt, simply type these three commands to clear everything out of the que.

  1. NET STOP spooler
  2. DEL %SYSTEMROOT%\System32\spool\PRINTERS\* /Q
  3. NET START spooler

Tada! Your printer can go back to printing now.

What does it do?

I’m glad you asked, its always good to know whats going on before you blindly type things in. Here’s whats going on. There is a service (a program that runs the background all the time) called the print spooler (or just spooler). Its job is to take print jobs from programs and send them to the printer. When you print something from a program like Word the spooler service creates two temporary files in C:\Windows\System32\spool\PRINTERS and if everything is running well, it then sends this file over whatever connection the computer as to the printer (USB, Parallel or TCP/IP).

Sometimes though (more often than it should) the spooler service gets stuck on one of these temporary files. and it gums up the whole process. Unfortunatly though if you try to just delete the files Windows wont let you because they are in use by the spooler service. So the above commands tell Windows to close the spooler service (which releases the files), then we delete all the files that are in the print que, and finally we start the spooler service back up so we can continue printing.

Popularity: 6% [?]


This post is tagged , , , , , , , ,

6 Comments

  1. Becca

    Very helpful Kyle. But all I can think about is the scene from Office Space where they beat the copier/printer (or maybe it was a fax machine?) to pieces. I don’t recommend it, but that will remove any stuck print job too :P

  2. x

    Becca, you have not been paying attention o what Kyle wrote. Stuck print jobs are caused by the computer OS not the printer, so you can destroy all the printers you want, it won’t help a bit.

  3. Bergie

    Thanks, that worked for me, but I didn’t follow your instructions to the letter. You don’t explain where to type in the instructions, all on one line or how? I typed the 1st. line of instructions, pressed “enter” thinking I would go down one line and type the next line of instructions and a message said “spooler stopped” I thought ‘ok, that’s what I want, now to restart it’. I then typed the last line of instructions and “enter” and the spooler was ok again and the printer works fine. The stuck printing job printed, and all looks fine.
    I’ll keep a reference to your page just in case though. Thanks.

  4. The_T

    Sorry to post this here Kyle, but on your IHM forum someone is spamming it to no end. I couldn’t find your contact information so I really hope this gets to you.

  5. @Bergie: The three lines are actually three commands. The middle command (the one you skipped) is there to actually remove the stuck job(s) from the printer spool so that they don’t print again when you turn the spooler service back on.

    As you found out though, sometimes all you need to do is stop and restart the service and it will happily print like nothing was ever wrong. But on occasion it will just get stuck again.

    Glad you got everything sorted out though, and glad I could help.

    @The_T: I’ll look into the problem user on the site, thanks for bringing it to my attention!

  6. yfqtkiman djhxeifl imye mgwakjdx hlqi lwakcrvdq apho

Incoming Links

Leave a Reply

Twitter

Most Popular Tags

Flickr

  • CIMG5600
  • CIMG5597
  • CIMG5596
  • CIMG5593
  • CIMG5576
  • CIMG5560
  • CIMG5552
  • CIMG5545
  • Eddy_Wedding_49
  • Eddy_Wedding_47
  • Eddy_Wedding_31
  • Eddy_Wedding_29
  • Eddy_Wedding_27
  • Eddy_Wedding_21
  • Eddy_Wedding_17