From febe6ed9f7be1b0336eb7063887c3baeacff883c Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 11 Oct 2023 07:54:36 +0200 Subject: [PATCH] Update list-printers.ps1 --- Scripts/list-printers.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/list-printers.ps1 b/Scripts/list-printers.ps1 index f907007c..9a245927 100755 --- a/Scripts/list-printers.ps1 +++ b/Scripts/list-printers.ps1 @@ -15,9 +15,9 @@ try { if ($IsLinux) { # TODO } 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)" + # $ComputerName = $(hostname) + # Get-WMIObject -Class Win32_Printer -ComputerName $ComputerName | Format-Table + Get-Printer * | Select-Object Name,Type,Location,Comment,DriverName,PrinterStatus | Format-Table -autoSize } exit 0 # success } catch {