Update list-printers.ps1

This commit is contained in:
Markus Fleschutz 2023-09-29 12:58:35 +02:00
parent d19a2e03c4
commit 9c8f8d343f

View File

@ -17,6 +17,7 @@ try {
} else {
$ComputerName = $(hostname)
Get-WMIObject -Class Win32_Printer -ComputerName $ComputerName | Format-Table
"(PrinterStatus: 1=various 2=unknown 3=idle 4=printing 5=warmup 6=finished 7=offline)"
}
exit 0 # success
} catch {