windows
How to manually remove stuck printer jobs from a Windows based print server
Submitted by soccerfiend on Tue, 2010-12-21 14:53First we stop the the print spooler. I like doing this from the command line like so:
- 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:
- del %systemroot%\system32\spool\printers\*.shd
- del %systemroot%\system32\spool\printers\*.spl
Finally we restart the print spooler, again from the CLI:
- 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
Submitted by soccerfiend on Wed, 2008-09-24 13:12While 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.