Use PowerShell to view info about printer ports

by Mitch Tulloch [Published on 6 Nov. 2014 / Last Updated on 6 Nov. 2014]

This tip shows how to use Windows PowerShell to view information about printer ports.

Another useful cmdlet is Get-PrinterPort, which allows you to retrieve a list of printer ports installed on a print server. For example, the following command displays information about all ports on HOST7 of the Standard TCP/IP Port type:

PS C:\> Get-PrinterPort -ComputerName HOST7 | where Description -like "*TCP*"

Name                 ComputerName         Description         
PortMonitor
---------                 ----------------------         ----------------         
-----------
172.16.11.55     HOST7                         Standard TCP/IP Port TCPMON.DLL

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