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.