Is there a way to use Rundll32.exe tcpmonui.dll,LocalAddPortUI from a command line to add a standard TCP/IP port for a printer?
Or any other way to add a standard TCP/IP printer port from a command line.
|
Is there a way to use Rundll32.exe tcpmonui.dll,LocalAddPortUI from a command line to add a standard TCP/IP port for a printer? Or any other way to add a standard TCP/IP printer port from a command line. |
||||
|
|
|
you mean like:
note:
|
|||||||
|
|
This page suggests that it is not possible unless the TCP/IP port already exists:
|
|||
|
|
|
Just so that others can find this here's the exact command (from
(if you didn't know, as I didn't, Another useful trick is to run a PowerShell one-liner to clear out any old printers that may exist (if it isn't obvious, this will delete all printers that you currently have installed):
|
|||
|
|