Start or stop the printer spooler from a command line

To start or stop the printer spooler from a command line, follow these steps:

  1. Open a command prompt.
  2. Execute the following commands, depending on your intent: net start spooler to start the spooler, or net stop spooler to stop it.

Comments

I had been looking for this command and I conducted a good amount of search. At last I have got it from this webpage. Thank you so much for being generous. I have got great help. Thank you again.

nath your site new look is very nice! the topics you are covering is of great help. very educational. keep it up!

Can u please tell me that how can the above task be accomplished by using C#. I am working on C# and am facing this problem. I have to stop the printer spooler at the middle of the page while the data is being printed over it i.e. i need to print some data and then stop the spooler at the middle of the page. Please help me in thsi regard. It is very important to me. Kindly help me out. I shal be very thankful.

FOUND THIS QUITE USEFUL. HAD BEEN TRYING TO INSTALL AN OLD PRINTER INTO A NEW COPUTER AND WAS LOST. !!

A quick copy and paste into the command line goes like this

1. Copy 6-lines below [from rem to rem]
rem ---
net stop spooler
del /F /Q %systemroot%\System32\spool\PRINTERS\*
net start spooler
exit
rem ---
2. Click the windows start button in the lower left hand corner
3. type cmd ↵ to get the command prompt
4. Right-click. Select Paste

Voila! you're done.

I keep getting "system error 5 has occurred." Access s denied. Please help.

run command prompt as administrator, it should work

Identification of future market needs is an art form for which there is no recipe (otherwise there would be no brand and business failures). See also item four in this list.