Friday, February 17, 2017

Can I use Windows Power Shell to look at Printers?

Almost anything on the Windows can be accessed from Power Shell and that includes Printers. I have a Canon MX430 printer which is a multi-function printer.

There are two ways to find about printers (that I know of):

You can find all printers using this comndlet to run:
------------
PS C:\WINDOWS\system32> (New-Object -ComObject WScript.Network).EnumPrinterConnections()

LPT1:
Canon MX430 series Printer
nul:
Send To OneNote 2016
PORTPROMPT:
Microsoft XPS Document Writer
PORTPROMPT:
Microsoft Print to PDF
Journal Note Writer Port:
Journal Note Writer
SHRFAX:
Fax
CNBJNPFAX_888717BBF935
Canon MX430 series FAX

---
Or, you can also use this:
-----------------------
PS C:\WINDOWS\system32> Get-WmiObject -Class Win32_Printer


Location      :
Name          : Canon MX430 series Printer
PrinterState  : 0
PrinterStatus : 3
ShareName     : Jays MX430 series Printer
SystemName    : HODENTEK8

Location      :
Name          : Send To OneNote 2016
PrinterState  : 0
PrinterStatus : 3
ShareName     :
SystemName    : HODENTEK8

Location      :
Name          : Microsoft XPS Document Writer
PrinterState  : 0
PrinterStatus : 3
ShareName     :
SystemName    : HODENTEK8

Location      :
Name          : Microsoft Print to PDF
PrinterState  : 0
PrinterStatus : 3
ShareName     :
SystemName    : HODENTEK8

Location      :
Name          : Journal Note Writer
PrinterState  : 0
PrinterStatus : 3
ShareName     :
SystemName    : HODENTEK8

Location      :
Name          : Fax
PrinterState  : 0
PrinterStatus : 3
ShareName     :
SystemName    : HODENTEK8

Location      :
Name          : Canon MX430 series FAX
PrinterState  : 0
PrinterStatus : 3
ShareName     :
SystemName    : HODENTEK8

No comments: