Add a printer connection for all users via cmd

To Add printers globally, run the following commands from a command promt. The print spooler service must be restarted for the printers to show:

To add a printer for all users:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /ga /n \servername\printername

net stop spooler
net start spooler

To remove a printer for all users:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /gd /n \servername\printername

net stop spooler
net start spooler

If you found this article helpful, would you consider buying me a Coffee?