Quick Tip: Create New LPR Printers Using PowerShell

There are a bunch of overloads for Add-Printer and Add-PrinterPort to accommodate different kinds of printers and ports. I found it tough, however, to find real examples of how to use these cmdlets to add LPR printers and ports. Not TCP/IP, not TCPLPR, not local ports. I figured it out, though, and now here’s how I did it.

There are no real surprises here. It’s just a matter of finding the right combinations of parameters and their values to make LPR printers and ports happen. In this example, I’m creating a bunch of them out of a list I have in a file.

3 thoughts on “Quick Tip: Create New LPR Printers Using PowerShell

  1. Add-PrinterPort -Name “PORT_NAME” -LprHostAddress “IP_PRINTER” -LprQueueName “LPR_PORT_NAME”
    Add-Printer -Name “PRINTER_NAME” -PortName “PORT_NAME -DriverName “DRIVER_NAME”

Comments are closed.