Working with Printer Spooler by Command line

You can combine the stop and start of a service into one command by using the following:

C:\>net stop spooler && net start spooler

This is effectivly the the same as doing a restart of the service from the services control panel app.

Just remember if the service name has a space between it to enclose the service name in speach marks " ".

i.e. net stop "service name" && net start "service name"

Clear the print spooler

C:\>net stop spooler && del /q %WINDIR%\system32\spool\printers\* && net start spooler

Stops the print spooler service, clears out all queued print jobs, and restarts the spooler. This will fix a LOT of printer issues.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s