Help Adding Printer Drivers via Command Line

Y

Yogi_Bear_79

I've searched the newsgroups, KB articles, and web and can't figure out what
I am doing wrong.

I'm never sure which printer a user will have so I load all the drivers for
the printers my organization owns. I used to do this manually by going to
Start > Settings > Printers > File Menu > Server Properties > Drivers Tab >
then add from there. After I figure out the syntax I had planned on writing
a short VBS script to add the dozen or so different printer drivers.

I've tried both drvmgr.vbs & rundll32 printui.dll,PrintUIEntry I can't get
either to work.

Here is the syntax I have been using:

cScript drvmgr.vbs -a -m "HP 1200" -v "Windows 2000" -t Intel -i d:\
hp1200ps.inf

It doesn't return an error, yet it also doesn't work.

Here is the other way I tried:

rundll32 printUI.dll,PrintUIEntry /ia /m "HP LaserJet 1200" /h "Intel" /v
"Windows 2000" /f "d:\ hp1200ps.inf " /l d:\

This one in all the various syntax's I chose returend an error.

Please note, I am not trying to install a printer per say. I'm just trying
to duplicate the actions I stated in paragraph 1 by going to the server
properties window and addind additonal drivers via the drivers tab. That
way when a user hooks the laptop to his usb printer it automatically
connects for him and the driver is supplied automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top