Get-Printer PowerShell builder
Check every printer on a Windows computer
Pick what to check: each printer's status, the jobs waiting, the IP addresses, the default, the spooler. Get the PowerShell lines for this computer or a print server, then paste what they print to see a paused or offline printer, a job in error or a stopped spooler, with the line that fixes it. It runs in your browser: nothing you type is sent to us.
Paste this in PowerShell
Start, type PowerShell, open it. These lines only read, so they need no administrator.
Get-Printer | Format-List Name, PrinterStatus, JobCount, PortName, DriverName, Shared
Get-Printer | Get-PrintJob | Format-List Id, PrinterName, DocumentName, UserName, TotalPages, JobStatus, SubmittedTime
Get-Service Spooler | Format-List Name, StatusEach line
- 1Every printer, with its status, jobs waiting, port and driver.
- 2Every job on every printer: Get-PrintJob needs a printer, so Get-Printer hands it each one.
- 3Running or Stopped. The spooler holds every job until the printer takes it.
Read what PowerShell printed
Paste everything the lines above printed, errors included. The example is a computer with one printer paused and a job waiting.
Library Mono is paused. Jobs wait until it is resumed.
Run PowerShell as administrator for this one.
Get-CimInstance Win32_Printer | Where-Object Name -eq 'Library Mono' | Invoke-CimMethod -MethodName Resume
- Spooler
- Running
- ReadyCopy Room Colour0 jobs waiting. Port 10.0.20.15. Driver Microsoft IPP Class Driver.
- PausedLibrary Mono1 job waiting. Port 10.0.20.31. Driver Microsoft PCL6 Class Driver.
Jobs: 14 Unit 4 quiz.pdf from jsmith (Paused, Spooling). Remove-PrintJob with -PrinterName and -ID removes one.
When PowerShell answers with an error
Get-Printer and Get-PrintJob read the print spooler, which keeps each print queue and sends to printers through a port 9100 or IPP port.
The spooler service is not reachable
The Print Spooler service has stopped. In PowerShell as administrator, Start-Service Spooler. If it stops again straight away, a bad job or driver is crashing it: clear C:\Windows\System32\spool\PRINTERS with the spooler stopped.
No MSFT_Printer objects found
No printer has that exact name. Get-Printer | Format-List Name lists them; copy the name, spaces and capitals included, and put it in single quotes.
PrinterStatus says Offline
Windows could not reach the printer at its port's address. Check it is on and on the network, then Test-NetConnection with its address and -Port 9100.
There is no Resume-Printer
PrintManagement has Resume-PrintJob for one job but no cmdlet for a paused printer. The Resume method of Win32_Printer does it, which is the line this page writes, run as administrator.
Take it further
- PrintUIEntry command builderFound the problem printer: delete it, its driver, or reconnect it from the server.
- Print queue clear commandJobs stuck for good: stop the spooler, clear the spool folder and start it again.
- PowerShell add printer builderAdd a printer by IP address or from a print server, with duplex and paper set.
- Printer port checkerAn offline printer: check it answers on port 9100 or 631.
- lpstat command builderThe same check on a Mac or Linux computer, with the output read back.
See every printer without a script.
Get-Printer shows one computer's queues. In KyberCopy the relay in the copy room asks each printer over IPP whether it is ready, and the copy room sees every job's state on one screen, from any device.
Book a demo