WARNING : This requires that "point and print" has been setup on the server - i.e., the server has a copy of the driver for the printer. See www.netadmintools.com/art258 for a guide on setting this up using Samba and CUPS.
This script is case sensitive.
addprinter.bat
REM Add a normal network printer rundll32 printui.dll,PrintUIEntry /ga /z /q /n\\servername\printername REM Add a network printer and set as default rundll32 printui.dll,PrintUIEntry /ga /y /z /q /n\\servername\printername
See " rundll32 printui.dll,PrintUIEntry /? " for more switches.