windows

How to manually remove stuck printer jobs from a Windows based print server

As it turns out, this is a pretty straight forward thing to do.

First we stop the the print spooler. I like doing this from the command line like so:

  1. net stop spooler

but you can just as easily stop the spooler from the "Services" control panel applet.

The next step is to delete the temporary files that store the data that is to be sent to the printer:

  1. del %systemroot%\system32\spool\printers\*.shd
  2. del %systemroot%\system32\spool\printers\*.spl

Finally we restart the print spooler, again from the CLI:

  1. net start spooler

Credit where credit is due, this info I pulled from http://www.ghacks.net/2008/12/11/how-to-deal-with-stuck-print-jobs/ There were a lot of results when I search Google, but this one went straight to the point (I like that).

Windows runas syntax

While not nearly as clean and slick as the GNU sudo command, it is a very useful command for doing administrative stuff while logged in as a non-privaledged user.

runas /noprofile /user:mydomain\myadminusername "mmc %SystemRoot%\system32\compmgmt.msc /s"

This example will bring up the “Computer Management” console, normally launched from “Administrative Tools” All of the control panel applets exist under %SystemRoot%\system32\ (typically c:\windows\system32) and they all have the .msc extension.

Syndicate content