Skip navigation

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





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%\inf\ntprint.inf" /r "lpt1:" /m "AGFA-AccuSet v52.3"
To delete "Test Printer":
rundll32 printui.dll,PrintUIEntry /dl /b "Test Printer" /c\\PRTSVR



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish