mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update list-printers.ps1
This commit is contained in:
@ -17,6 +17,7 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
$ComputerName = $(hostname)
|
$ComputerName = $(hostname)
|
||||||
Get-WMIObject -Class Win32_Printer -ComputerName $ComputerName | Format-Table
|
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
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Reference in New Issue
Block a user