Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specify network printer driver

Status
Not open for further replies.

pelcakm

IS-IT--Management
Jun 9, 2006
12
US
Here's my issue: I need to be able to specify the driver to be used when installing a network printer using a batch script. I know how to add network printers from a print server where the driver is already specified for you, but how do I include what driver to use when adding the printer in the script?

Is there something I can add to this command to do it?

rundll32 printui.dll,PrintUIEntry /in /q /n\\server\printer

I'm trying to do this on Windows XP machines.

 
There is a lot of info there. Most of which I'm still sifting through. It just seems like there should be an easier way. You can specify the print driver when installing a local printer using printui.dll but there doesn't seem to be a driver switch statement for installing a network printer.

The local printer format is:

rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /c\\SERVER /f
"%windir%\inf\ntprint.inf" /r "lpt1:" /m "AGFA-AccuSet v52.3"

using a network printer from a share throws an error.

I'm trying to do this:

rundll32 printui.dll,PrintUIEntry /if /q /n\\server\n126-hp8150-w /f "%windir%\inf\ntprint.inf" /m "HP LaserJet 8150 Series PCL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top