Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Windows can show the network printers configured on a computer, along with each queue’s Windows port name, device or print-server address, TCP port, protocol, LPR queue, and SNMP status. The most reliable method is to join two sets of data: Win32_Printer identifies which port each printer queue uses, while Win32_TCPIPPrinterPort supplies the address and port details.

These commands inspect printers installed on the selected computer. They do not scan the LAN or discover every reachable printer.

Quick listing with PowerShell

Open PowerShell and run:

Get-CimInstance -ClassName Win32_Printer |
    Select-Object Name, Network, Local, PortName, ServerName, ShareName

This gives you the printer queues and their configured port names. For example, a locally configured queue might use a port named IP_192.168.1.45, while a shared printer may show a UNC connection such as \PrintServerFinance.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can also list the printer objects with the PrintManagement module:

#1 Best Overall
Brother DCP-L2640DW Wireless Compact Monochrome Multi-Function Printer, Copy, Scan, Duplex, Mobile Printing
  • BEST FOR SMALL BUSINESSES – Engineered for extraordinary productivity, the Brother DCP-L2640DW Monochrome (Black & White) 3-in-1 combines laser printer, scanner, copier in one compact footprint and delivers high-quality black & white prints
  • FAST PRINTER WITH EFFICIENT SCANNING – Produces documents quickly with print speeds up to 36 ppm(2) and scan speeds up to 23.6/7.9 ipm(3) (black/color). A 50-page auto document feeder(4) allows for convenient, time saving multi-page scanning and copying
  • FLEXIBLE CONNECTION OPTIONS – Easily navigate the changing demands of your business with secure multi-device connectivity via built-in dual-band wireless (2.4GHz / 5GHz) and Ethernet. Or connect locally to a single computer via USB interface
  • BROTHER MOBILE CONNECT APP – Print, scan, and manage your wireless printer anytime, from almost anywhere from your mobile device. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(5)
  • CHOOSE BROTHER GENUINE TONER – When it’s time to replace your toner, be sure to choose Brother Genuine TN830 or TN830XL replacement toner. And with Refresh EZ Print Subscription Service, you’ll never worry about running out of toner again and you’ll enjoy savings of up to 50%(6) on Brother Genuine Toner. Get started with Refresh today with a Free Trial(1)
Get-Printer

Get-Printer requires no administrator credentials. It lists printers and printer connections installed on the local computer; it is not a network discovery command.

Show each printer with its IP address and TCP port

Use this command when you need one row per installed printer associated with a standard TCP/IP port:

$tcpPorts = Get-CimInstance -ClassName Win32_TCPIPPrinterPort

Get-CimInstance -ClassName Win32_Printer |
    ForEach-Object {
        $printer = $_
        $port = $tcpPorts | Where-Object Name -EQ $printer.PortName

        if ($port) {
            [pscustomobject]@{
                PrinterName = $printer.Name
                PortName    = $printer.PortName
                IPAddress   = $port.HostAddress
                PortNumber  = $port.PortNumber
                Protocol    = switch ($port.Protocol) {
                    1 { 'RAW' }
                    2 { 'LPR' }
                    default { "Unknown ($($port.Protocol))" }
                }
                Queue       = $port.Queue
                SNMPEnabled = $port.SNMPEnabled
            }
        }
    } |
    Format-Table -AutoSize

The important match is:

Win32_Printer.PortName = Win32_TCPIPPrinterPort.Name

A typical result might look like this:

PrinterName PortName IPAddress PortNumber Protocol Queue SNMPEnabled
Accounts Laser IP_10.2.3.4 10.2.3.4 9100 RAW True
Warehouse Printer PRN-WH 10.2.3.20 515 LPR print False

RAW is represented by protocol value 1, and LPR by value 2. RAW printing commonly uses TCP port 9100; LPR commonly uses TCP port 515, although the configured value is the one shown by the command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Export the listing to CSV

To open the results in Excel or retain an inventory file, replace the final formatting pipeline with Export-Csv:

$tcpPorts = Get-CimInstance -ClassName Win32_TCPIPPrinterPort

Get-CimInstance -ClassName Win32_Printer |
    ForEach-Object {
        $printer = $_
        $port = $tcpPorts | Where-Object Name -EQ $printer.PortName

        if ($port) {
            [pscustomobject]@{
                PrinterName = $printer.Name
                PortName    = $printer.PortName
                IPAddress   = $port.HostAddress
                PortNumber  = $port.PortNumber
                Protocol    = switch ($port.Protocol) {
                    1 { 'RAW' }
                    2 { 'LPR' }
                    default { "Unknown ($($port.Protocol))" }
                }
                Queue       = $port.Queue
                SNMPEnabled = $port.SNMPEnabled
            }
        }
    } |
    Export-Csv -Path .network-printers.csv -NoTypeInformation

The file is created in PowerShell’s current directory. Run Get-Location first if you need to check where that is.

Rank #2
Brother HL-L2460DW Wireless Compact Monochrome Laser Printer with Duplex, Mobile Printing, Black & White Output | Includes Refresh Subscription Trial(1), Works with Alexa
  • BEST FOR HOME OFFICES & SMALL TEAMS – Engineered for consistent, premium print quality, the Brother HL-L2460DW Monochrome (Black & White) Laser Printer produces documents that are clear, crisp, and easy to review and share, all at an affordable price
  • COMPACT, CONNECTED, EXCEPTIONALLY EFFICIENT– Connect with built-in dual-band wireless (2.4GHz/5GHz), Ethernet, or to a single computer via USB interface. Prints at speeds up to 36ppm(2), plus automatic duplex printing saves time and reduces paper waste
  • BROTHER MOBILE CONNECT APP – Manage your wireless printer remotely and print from your mobile device anytime, from almost anywhere. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(3)
  • VERSATILE PAPER HANDLING – Tackle high-volume black & white printing with the 250-sheet capacity paper tray.(4) The manual feed slot enables printing on envelopes and specialty paper
  • BROTHER IS AT YOUR SIDE – Backed by Brother with a 1-year limited warranty and free online, call, or live chat support for the life of your printer

List the installed TCP/IP ports with Command Prompt

Windows includes the prnport script for listing standard TCP/IP printer ports. In Command Prompt, run:

cscript "%WINDIR%System32printing_Admin_Scriptsen-USprnport" -l

This reports TCP/IP port objects, not printer queues. It can show the port name, host address, protocol, TCP port, queue, and SNMP-related settings, but it does not by itself tell you which printer queue uses each port.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On a localized Windows installation, the script directory may not be en-US. The directory is under:

%WINDIR%System32printing_Admin_Scripts<language>

Substitute the language directory installed on that computer if the English path does not exist.

Inspect ports on a remote print server

To list standard TCP/IP ports installed on a print server named Server1:

Rank #3
Sale
Brother Work Smart 1360 Wireless Color Inkjet All-in-One Print, Scan, Copy
  • AFFORDABLE ALL-IN-ONE FOR HOME AND HOME OFFICE: Print, copy, and scan on one compact wireless printer designed for everyday home office printing, schoolwork, documents, and reports. Produce beautiful prints for results that stand out.
  • EASY TO USE WITH CLOUD APP CONNECTIONS: Print from and scan to popular Cloud apps(2), including Google Drive, Dropbox, Box, OneDrive, and more from the simple-to-use 1.8” color display on your printer.
  • FULL-SIZE FEATURES IN A COMPACT DESIGN: This printer includes automatic duplex (2-sided) printing, a 20-sheet single-sided Automatic Document Feeder (ADF)(3), and a 150-sheet paper tray(3). Engineered to print at fast speeds of up to 16 pages per minute (ppm) in black and up to 9 ppm in color(4).
  • MULTIPLE CONNECTION OPTIONS: Connect your way. Interface with your printer on your wireless network or via USB.
  • MOBILE PRINTING MADE EASY: Go mobile with the Brother Mobile Connect app(5) that delivers easy onscreen menu navigation for printing, copying, scanning, and device management from your mobile device. Monitor your ink usage with Page Gauge to help ensure you don’t run out(6).
cscript "%WINDIR%System32printing_Admin_Scriptsen-USprnport" -l -s Server1

For a PowerShell query, use the computer parameter on the PrintManagement cmdlets:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Get-Printer -ComputerName Server1
Get-PrinterPort -ComputerName Server1

The first command retrieves printer queues from Server1; the second retrieves its installed printer-port objects. Remote access can still fail because of firewall rules, print-service availability, CIM/WMI remoting, or permissions. The presence of a -ComputerName parameter does not bypass those connectivity requirements.

Why some printers are missing from the IP-address report

The joined PowerShell report deliberately emits only printers whose PortName matches a Win32_TCPIPPrinterPort.Name. That excludes several legitimate printer types:

Printer or port type What to expect
Shared printer The port may be a UNC path such as \PrintServerShareName. Report ServerName and ShareName; do not invent a device IP.
WSD It is not represented as a standard TCP/IP port with HostAddress and PortNumber.
USB It has no network address or TCP port.
FILE: Output is directed to a file rather than a network printer.
Microsoft virtual printer It normally has no physical network endpoint.

To include every installed queue in an inventory, first export the printer properties separately:

Get-CimInstance -ClassName Win32_Printer |
    Select-Object Name, Network, Local, PortName, ServerName, ShareName |
    Export-Csv -Path .all-printers.csv -NoTypeInformation

If a printer uses a shared queue, its configured address may identify the print server rather than the physical printer. Likewise, multiple printer queues can use the same TCP/IP port, so a port listing alone cannot establish a one-to-one printer-to-IP relationship.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Epson EcoTank ET-4800 Wireless Color All-in-One Supertank Printer
  • Innovative Cartridge-Free Printing ― High-capacity ink tanks mean no more tiny, expensive ink cartridges; Epson’s exclusive EcoFit ink bottles make filling easy and worry-free
  • Impressive Print Quality ― Unique Micro Piezo Heat-Free Technology produces sharp text – plus impressive color photos and graphics – on virtually any paper type
  • Zero Cartridge Waste – By using an EcoTank printer, you can help reduce the amount of cartridge waste ending up in landfills
  • Built-in Scanner & Copier ― High-resolution flatbed scanner and a color display for easy document copying and navigation

RAW, LPR, and SNMP details

For standard TCP/IP ports, the relevant properties are:

  • Name: the Windows-configured port name.
  • HostAddress: the printer or print-server address.
  • PortNumber: the TCP port used by the port monitor.
  • Protocol: 1 for RAW or 2 for LPR.
  • Queue: the LPR queue name.
  • SNMPEnabled: whether SNMP status monitoring is enabled.

Do not assume that every printer accepts RAW on port 9100. Some devices support only LPR, and LPR/LPD is deprecated in Windows documentation even though it remains present in many printer environments. The configured protocol and port in the report are the values to troubleshoot.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Do not use the old WMIC example

You may still find this command in older guides:

wmic printer get name,portname

WMIC, the command-line utility, is deprecated and is scheduled for removal in a future Windows release. WMI itself is not the issue; use PowerShell’s CIM commands instead:

Get-CimInstance -ClassName Win32_Printer |
    Select-Object Name, PortName

Use Get-Printer for a straightforward queue listing, and the Win32_Printer plus Win32_TCPIPPrinterPort join when you need the actual configured address and port.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FAQ

Does Get-Printer discover every printer on my network?

No. It lists printers and printer connections installed on the computer being queried. It does not scan the LAN for reachable printers.

Best Value
Brother Laser Printer, Monochrome Duplex Wireless Printer, HL-6210DW
  • Professional Performance: Dominate your office printing tasks with this Brother Genuine laser office printer delivering an impressive 50 ppm output speed, ensuring your high-volume printing jobs are completed with exceptional efficiency and precision
  • Superior Capacity: Print business documents with this monochrome laser printer's robust 520-sheet main tray and 100-sheet multipurpose tray, expandable up to 1,660 sheets with optional trays for uninterrupted, professional-grade printing performance
  • Advanced Connectivity: Experience seamless integration with this Brother wireless printer's built-in Gigabit Ethernet and dual band wireless networking capabilities, enabling efficient printer sharing & mobile device printing across your business network
  • Cost-efficient Printing: Maximize your printing budget with Brother Genuine ultra high-yield replacement toner cartridges for Brother printers delivering up to 18,000 pages, significantly reducing operational costs for monochrome document printing
  • Security Excellence: Safeguard your Brother Genuine business printer for daily office use with advanced Triple Layer Security features, ensuring comprehensive protection for your network, devices, and documents during transmission and printing

Why does the report show a printer but no IP address?

The queue may use a shared UNC connection, WSD, USB, FILE:, or another non-standard-TCP/IP port. Check its PortName, ServerName, and ShareName with Win32_Printer.

Is the HostAddress always the printer’s physical IP address?

No. For a queue connected through a network print server, HostAddress can identify the print server rather than the physical printer.

Can two printers have the same IP address in the output?

Yes. Multiple queues can use the same configured TCP/IP port. Join the printer and port objects to see the association, but do not assume each queue has a unique endpoint.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What does prnport -l list?

It lists standard TCP/IP printer-port objects. It does not provide the queue-to-port association by itself.

Do these commands require administrator rights?

Get-Printer and Get-PrinterPort are documented as requiring no administrator credentials. Remote queries may nevertheless be blocked by permissions, firewall settings, remoting configuration, or an unavailable target computer.

The Bottom Line

For a useful printer-to-endpoint inventory, query Win32_Printer, query Win32_TCPIPPrinterPort, and match the printer’s PortName to the port object’s Name. This reveals the configured address, TCP port, protocol, LPR queue, and SNMP state without confusing shared, USB, WSD, and virtual printers with network TCP/IP queues.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.