Using PowerShell to view info about printers

by Mitch Tulloch [Published on 29 Oct. 2014 / Last Updated on 29 Oct. 2014]

This tip shows how you can use Windows PowerShell to view information about printers.

You can use the Get-PrinterConfiguration cmdlet to display the configuration settings for a particular printer:

PS C:\> Get-PrintConfiguration -ComputerName HOST7 -PrinterName "HP LaserJet 5200 PCL6"

PrinterName     ComputerName    Collate    Color     
DuplexingMode
-----------               ------------                  -------         -----     
-------------
HP LaserJet ... HOST7           True       False      OneSided

Using the pipeline also allows you to display configuration settings for all printers installed on a remote printer server:

PS C:\> Get-Printer -ComputerName HOST7 | Get-PrintConfiguration

PrinterName     ComputerName    Collate    Color     
DuplexingMode
-----------                ------------                 -------        -----     
-------------
Samsung CLP-... HOST7           False      True      
OneSided
Microsoft XP... HOST7           False      True      
OneSided
HP LaserJet ... HOST7           True       False     
OneSided
HP LaserJet ... HOST7           True       False      OneSided

If you want to list all color printers installed on HOST7, you can do it like this:

PS C:\> Get-Printer -ComputerName HOST7 | Get-PrintConfiguration | `
where Color -eq $true | fl PrinterName

PrinterName : Microsoft XPS Document Writer
PrinterName : Samsung CLP-410 Series PCL6

The above tip was excerpted from Mitch Tulloch's book Training Guide: Installing and Configuring Windows Server 2012 from Microsoft Press.

Mitch is a nine-time recipient of the Microsoft Most Valuable Professional (MVP) award and a widely recognized expert on Windows administration, deployment and virtualization.  For more information see http://www.mtit.com.

See Also


The Author — Mitch Tulloch

Mitch Tulloch is a well-known expert on Windows Server administration and cloud computing technologies. He has published over a thousand articles on information technology topics and has written, contributed to or been series editor for over 50 books.

Featured Links