mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 14:18:38 +01:00
Update remove-print-jobs.ps1
This commit is contained in:
parent
6c0116adb7
commit
fd991223b0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user