JSI Tip 2014. Windows 2000 can add local and remote printers from the command line.

Jerold Schulman

February 13, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today





While Con2Prt would allow you to add or delete a network printer, in Windows NT 4.0, Windows 2000 also allows you to add and delete local printers.

You can run the commands remotely, schedule them, or even run them in a logon script, for Windows 2000 clients.

Type rundll32 printui.dll,PrintUIEntry /? at a command prompt.

To add "Test Printer", an Agfa printer, on computer name PRTSVR, type:

rundll32 printui.dll,PrintUIEntry /ia /c\PRTSVR /m "AGFA-AccuSet v52.3" /h "Intel"rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /c\PRTSVR /f "%windir%inftprint.inf" /r "lpt1:" /m "AGFA-AccuSet v52.3"

To delete "Test Printer":

rundll32 printui.dll,PrintUIEntry /dl /b "Test Printer" /c\PRTSVR



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like