Sub topic 12
The Print Spooler and Managing the Print Queue
This chapter assumes you know how a printer is installed and connected, and that you can open a command prompt or PowerShell. It covers what the print spooler does, how to read and clear a print queue, and the common errors you will see on the exam and on the job.
What the Spooler Does
The print spooler is a service that accepts print jobs from applications and holds them on disk until the printer is ready. Without it, an application would freeze until the last page printed. With it, the application hands off the job and returns to the user at once.
Spooled jobs are stored as files in C:\Windows\System32\spool\PRINTERS. Each job gets a shadow file and a spool file. The service reads these files in order and sends the data to the printer through its port.
Reading the Queue
The print queue is the list of jobs waiting for one printer. In Windows, open Settings, then Printers & scanners, choose the printer, and select Open print queue. Each job shows a status such as Printing, Spooling, Paused or Error.
From the queue window you can:
- Pause a job to hold it while others continue.
- Restart a job that failed part way.
- Cancel a job to remove it.
- Pause or cancel the whole printer from the Printer menu.
If a printer shows Offline or Paused, check the Printer menu first. A ticked "Use Printer Offline" or "Pause Printing" option is a common cause of a queue that does nothing.
Clearing a Stuck Queue
A job sometimes sits at "Deleting" and will not go away. A corrupt job file usually causes this. Cancelling from the window fails because the spooler still holds the file. The fix is to stop the service, delete the files, and start it again.
net stop spooler
del /Q /F /S "%systemroot%\System32\spool\PRINTERS\*.*"
net start spoolerRun these from an elevated command prompt (Run as administrator). The first line stops the service. The second deletes every job file in the spool folder without prompting. The third restarts the service.
On Linux and macOS the print system is CUPS (Common Unix Printing System). It has its own queue tools:
lpstat -p -d
cancel -alpstat -p -d lists the printers and the default printer. cancel -a cancels all pending jobs.
Checking Printers from PowerShell
PowerShell shows the installed printers with their driver, port and status:
Get-Printer | Select-Object Name, DriverName, PortName, PrinterStatusIf the queue looks healthy but nothing prints, test the network path. Port 9100 is the raw TCP port many network printers listen on:
Test-NetConnection -ComputerName 192.168.1.50 -Port 9100A result of TcpTestSucceeded : True means the network path works, so look at the driver or the queue. A result of False points to the cable, Wi-Fi, IP address or the printer itself.
Common Errors
| Symptom | Likely cause | First fix |
|---|---|---|
| Job stays at "Deleting" | Corrupt spool file | Restart spooler and clear the folder |
| Printer shows Offline | Paused, unplugged, or wrong port | Check cable or network, then the Printer menu |
| Jobs vanish without printing | Spooler service stopped | Start the Print Spooler service in services.msc |
| Spooler stops again after restart | Bad driver or a damaged job | Clear the folder, then reinstall the driver |
| Garbled text prints | Wrong driver or page description language | Install the correct driver |
Exercise
A user says a document has been stuck at "Deleting" for an hour and no other job prints. Cancelling it in the queue window does nothing. Which steps clear the problem?
Show answer
Open an elevated command prompt. Run net stop spooler, delete the files in %systemroot%\System32\spool\PRINTERS, then run net start spooler. The corrupt job file is removed, so the queue is empty and new jobs print. Warn other users first, because every pending job is deleted.
Exercise
The queue is empty and shows no errors, but a network printer at 192.168.1.50 prints nothing. Which command separates a network problem from a driver problem, and what does a False result mean?
Show answer
Run Test-NetConnection -ComputerName 192.168.1.50 -Port 9100. A TcpTestSucceeded value of False means the computer cannot reach the printer's raw print port, so check the cable, Wi-Fi, IP address or printer power. A True result means the network path works and the driver or queue is the likely cause.