How To
ITPro Today logo
Microsoft WindowsHow can I add a printer from the command line?How can I add a printer from the command line?
A . Microsoft has a utility which can add printers from the command line but its only available to OEM suppliers. Another option is by directly manipulating the printui.dll dynamic link library. rundll32 printui.dll,PrintUIEntry \[options\] For example to add a HP DeskJet 970Cxi on LPT1: on Windows 2000 use the following:
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.