![]() ![]() Clearing content in $env:windir\system32\spool\PRINTERS" -ForegroundColor Green Remove-Item -Path $env:windir\system32\spool\PRINTERS\*.* $sure=Read-Host "Are you sure you want to delete all Print Jobs on $env:computername (Y/N)" Write-Host '\\\\\\\\\\\\\\ This script deletes all print jobs. It was a quick job and it’s not perfect but it does what it’s supposed to do. In the meantime, more print jobs could be coming in. ![]() For example, when you cannot start or stop the spooler service. Further errors are output via the error handling of PowerShell. Checking the folder doesn’t make sense. Hopefully □ In Action …Īre you sure you wanna do this? Consider, you will delete all print jobs! This guarantees that all stuck print jobs are deleted. deletes all content of C:\Windows\System32\spool\PRINTERS\.Let’s put them all together in a PowerShell script. Delete all content in den spool directory. Deleting print jobs on a print server involves 3 tasks: Stop the spooler service. So I decided to write an article about it and also a PowerShell script. However, some of them could not be removed. ![]() This week I had the task to delete print jobs from the queue. Although it reminds of a printing problem with error 0x8007007e which was also solved by reinstalling the printer driver (in some unorthodox way).By Patrick Gruenauer on 21. But that shouldn’t be necessary in this case. As a last resort, you may want to try to remove and re-add the printer to your computer. The print queue of your printer is now empty. Right-click the “ Print Spooler” service, and click Start Open Windows Explorer, navigate to C:\Windows\System32\spool\printers.In the Services window, right-click the Print Spooler service, and click Stop. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |