Wednesday, November 2, 2011

Automate network printer installation via logon script

If you manage a Windows server and would like to have network printers automatically installed on users' workstations at logon via a batch script, here's how to do it.


To add a network printer:
rundll32 printui.dll,PrintUIEntry /in /q /n\\ServerName\PrinterName
To delete a network printer:
rundll32 printui.dll,PrintUIEntry /dn /q /n\\ServerName\PrinterName
For more information, read this TechNet article.