[jedi/old/i-menu.htm]
3TGKB-0048

Last Edited :

06-07-05

Revision :

 2.0


How do I add a printer from a batch file?


You can do many things with printers using the RUNDLL32 PRINTUI.DLL commands in a batch file. Here are a few examples:

To add:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /q /in /n\\ServerName\PrinterShareName

To delete:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /q /dn /n\\ServerName\PrinterShareName

To make default:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /q /y /n\\ServerName\PrinterShareName

But there are loads more options than that. Do a Google search on “RUNDLL32 PRINTUI.DLL” for more information.

 

Regards

Paul Eddington


KB Keywords:  printer batch RUNDLL32 automated logon script