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.

6 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete