Update remove-print-jobs.ps1

This commit is contained in:
Markus Fleschutz 2021-08-30 11:25:27 +02:00
parent 6c0116adb7
commit fd991223b0

View File

@ -14,6 +14,8 @@
try {
$printers = Get-Printer
if ($printers.Count -eq 0) { throw "No printer found" }
foreach ($printer in $printers) {
$printjobs = Get-PrintJob -PrinterObject $printer
foreach ($printjob in $printjobs) {