Global Add Printer
When adding printers - for example on a pre-configured desktop meant for deployment on several computers - there is a need for globally added printers or else each user who logs in needs to configure the printers manually.
The printui.dll supports this option when running from command-line.
Adding a printer on the local computer (Global Add):
rundll32 printui.dll,PrintUIEntry /ga /n\\SERVER\MYPRINTER
Removing a printer on the local computer (Global Delete):
rundll32 printui.dll,PrintUIEntry /gd /n\\SERVER\MYPRINTER
For the added printer to show up in the Printers list, you need to restart the Print Spooler. This can be done through the Services interface (Control Panel -> Administrative Tools) or by running
sc stop spooler
sc start spooler
Previous page: Printing