Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - PowerShell ► ««« »»»

Reset print queue with PowerShell?


If there are a lot of pending jobs in the print queue, PowerShell can be used to delete all of the print jobs and thus reset everything!



1.) ... The command to delete all print jobs from the print queue!
2.) ... Delete and restart the printer queue with a batch file!
3.) ... Check the printer queue folder in Explorer!
4.) ... Why are there stuck in the printer queue?



1.) The command to delete all print jobs from the print queue!

The simplest command is via the  wmic , as it works in the command prompt and in PowerShell 

1. Start Command Prompt or PowerShell in administrative mode 
( Windows + R and confirm with Ctrl + Shift + Enter )

2. And just enter the command:


wmic printjob delete



The message "No instances available" appears if there are no print jobs in the queue, if there are, they will be deleted!

(... see Image-1 Point 1 to 4)


(Image-1) Delete all print queue with PowerShell!
Delete all print queue with PowerShell!

-
▲ Back to the top ▲



2.) Delete and restart the print queue with a batch file!

The automatic deletion via batch file is also very popular; this must also be carried out with administrative rights! 

As always, start Notepad as a text editor. Copy and paste the following text into the blank document as separate lines:


net stop spooler

del /Q /F /S "%windir%\System32\spool\PRINTERS\*.*"

net start spooler



Save it on the desktop as Printer Queue-Reset.bat and start it with administrative rights!

(... see Image-2 Point 1 to 4) 

(Image-2) Reset print queue with batch file!
Reset print queue with batch file!

-
▲ Back to the top ▲




If you're deleting your printer queue more often, you can also do a simple batch file to do it with one click. 

3.) Check the printer queue folder in Explorer!

The little-known folder for print jobs can be checked or cleaned up, but the Windows print service must be  stopped. But you can also clean up the print queue with a batch file ! 


%windir%\System32\spool\PRINTERS


(... see Image-3 Point 1 to 4) 


(Image-3) The printer queue folder of Windows!
The printer queue folder of Windows!

-
▲ Back to the top ▲






4.) Why are there stuck in the print queue?

Sometimes print documents that you are printing just get stuck in the printer's queue and prevent further documents from being printed. Regardless of whether you are using a local or a shared network printer, sometimes it is a simple misprint that cannot be printed correctly. Often times, simply deleting and restarting the print queue will solve the problem. 

See also:

►► Printer only prints in black and white and not in color, why!
►► Set the standard printer for Windows 11!
►► Help, why can't I print on my computer?
►► Why is the font not printed correctly?
►► Brief instructions for troubleshooting the laser printer!

►► The best Windows 11/10 printer tips!



FAQ 6: Updated on: 8 May 2022 14:51 Windows
PowerShell

How can I find out the SHA hash value of a file using PowerShell?


It is really easy to find out the SHA256 hash value of a file with PowerShell under Windows 11, 10, or MS Server 1. Get SHA256 checksum via PowerShell 
PowerShell

Deactivate / activate the touch screen function with PowerShell!


Deactivating or activating the touch screen function with PowerShell is also possible on all MS Windows Desktop and MS Server OS Everyone knows the simple
PowerShell

Checking PowerShell version on all MS Windows OS?


Checking the PowerShell version in all MS Windows 11, 10, and MS Server OS is quite easy and easy to find out even without PowerShell expertise If you
PowerShell

List all Powershell commands, filter, help?


In order to work easily with Powershell commands, you can list them, filter them, or get help for the individual Powershell commands Contents: 1. Listing
PowerShell

Find out arguments of running programs with PowerShell!


Listing arguments / parameters of running programs or services with PowerShell is quite practical on MS Windows 11, 10, and Server OS Start PowerShell
PowerShell

How do I optimize VHD and VHDX files with PowerShell?


The simple and fast optimization of VHD and VHDX files with simple PowerShell commands on MS Windows 11, 10, or MS Server OS is very popular The "Optimize-VHD"
PowerShell

Activate Hyper-V vis PowerShell on MS Windows Desktop and Server?


Its easy to enable Hyper-V PowerShell on MS Windows Desktop and Server to handle, optimize, virtual PCs and virtual hard disks, Hyper-V is already

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: powershell, reset, print, queue, with, there, pending, jobs, used, delete, thus, everything, command, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + DirPrintOK
  + FontViewOK
  + MeinPlatz
  + DesktopOK
  + ProcessKO
  + WinBin2Iso
  + ThisIsMyFile
  + TheAeroClock
  + CoronaKO
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► Deactivate, activate, list network adapters via command prompt! ◄

► How to see the disks partitions under Windows 10/11? ◄

► How can I reduce the size of the images from Windows 11, 10, ... Explorer? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....