Script to Install Printer Drivers w/o adding printer

Posted: 01-26-2009, 08:47 PM

I'm hoping someone can help me. I need a script that will allow me to
install multiple printer drivers without needing to add the printers.

Normally, I go into printers, go to file, server properties, drivers
tab and add them there. This allows me to install the drivers on the
machine for when the user needs to add a printer at different
locations.

The drivers are located on a server that is only accessible from my
central location, but if needed, I can put them on a cd just to install
using the script.

I'm using mostly XP with only a few Vista machines, which requires the
same steps but you have to run as administrator.

Thanks!


--
witecoko
------------------------------------------------------------------------
witecoko's Profile: http://forums.techarena.in/members/witecoko.htm
View this thread: http://forums.techarena.in/xp-print-fax/1110545.htm

http://forums.techarena.in

Script to Install Printer Drivers w/o adding printer


Responses to "Script to Install Printer Drivers w/o adding printer"

Alan Morris [MSFT]
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 01-26-2009, 09:35 PM
if the print drivers are signed you can use prndrvr.vbs (XP in \system32,
Vista in \system32\printing_admin_scripts\en-us) or rundll32 in either OS to
call into the printui interface. If the drivers are not signed you will
have to use rundll32. In Vista just launch printui.exe, this will invoke
the help and you can look through the examples for use in both XP or Vista.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"witecoko" <witecoko.3mn2zc@DoNotSpam.com> wrote in message
news:witecoko.3mn2zc@DoNotSpam.com...
>
> I'm hoping someone can help me. I need a script that will allow me to
> install multiple printer drivers without needing to add the printers.
>
> Normally, I go into printers, go to file, server properties, drivers
> tab and add them there. This allows me to install the drivers on the
> machine for when the user needs to add a printer at different
> locations.
>
> The drivers are located on a server that is only accessible from my
> central location, but if needed, I can put them on a cd just to install
> using the script.
>
> I'm using mostly XP with only a few Vista machines, which requires the
> same steps but you have to run as administrator.
>
> Thanks!
>
>
> --
> witecoko
> ------------------------------------------------------------------------
> witecoko's Profile: http://forums.techarena.in/members/witecoko.htm
> View this thread: http://forums.techarena.in/xp-print-fax/1110545.htm
>
> http://forums.techarena.in
>

witecoko
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 01-26-2009, 09:47 PM

sorry, did not mean to post twice

--
witecok
-----------------------------------------------------------------------
witecoko's Profile: http://forums.techarena.in/members/witecoko.ht
View this thread: http://forums.techarena.in/xp-print-fax/1110569.ht

http://forums.techarena.i

witecoko
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 01-27-2009, 07:55 PM

Alan,
thank you for your reply. You definitely pointed my in the righ
direction. I have written some code but now I'm getting an error an
have had no luck googling it. Heres what I have:

cscript prndrvr.vbs -a -m "hp laserjet 2550 pcl 6"
-v -e -h e:\printdrivers\hp_clj2550_pcl6 -i hpc2550c.inf

I get error code 800A0401, char 27. I'm not familiar with code, so
don't know the rules, but character 27 doesn't look wrong to me

--
witecok
-----------------------------------------------------------------------
witecoko's Profile: http://forums.techarena.in/members/witecoko.ht
View this thread: http://forums.techarena.in/xp-print-fax/1110545.ht

http://forums.techarena.i

Alan Morris [MSFT]
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 01-28-2009, 05:25 PM
There is a bunch of file for most of the HP drivers. There is some language
file in one of the cabs that has to be a flat file.

Just crack all the cabs and expand the files to a flat file share



PS I have no clue on the error, it's not mapping to anything.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"witecoko" <witecoko.3mpz5o@DoNotSpam.com> wrote in message
news:witecoko.3mpz5o@DoNotSpam.com...
>
> Alan,
> thank you for your reply. You definitely pointed my in the right
> direction. I have written some code but now I'm getting an error and
> have had no luck googling it. Heres what I have:
>
> cscript prndrvr.vbs -a -m "hp laserjet 2550 pcl 6"
> -v -e -h e:\printdrivers\hp_clj2550_pcl6 -i hpc2550c.inf
>
> I get error code 800A0401, char 27. I'm not familiar with code, so I
> don't know the rules, but character 27 doesn't look wrong to me?
>
>
> --
> witecoko
> ------------------------------------------------------------------------
> witecoko's Profile: http://forums.techarena.in/members/witecoko.htm
> View this thread: http://forums.techarena.in/xp-print-fax/1110545.htm
>
> http://forums.techarena.in
>

witecoko
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 02-02-2009, 07:31 PM

Hi Alan,
I'm guessing by flat, you mean they have to be "extracted"?? I hav
looked and there is not a cab file at all.

Any other suggestions?

Thanks

--
witecok
-----------------------------------------------------------------------
witecoko's Profile: http://forums.techarena.in/members/witecoko.ht
View this thread: http://forums.techarena.in/xp-print-fax/1110545.ht

http://forums.techarena.i

Alan Morris [MSFT]
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 02-03-2009, 06:11 PM
add the link to the driver you are installing.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"witecoko" <witecoko.3mzyvc@DoNotSpam.com> wrote in message
news:witecoko.3mzyvc@DoNotSpam.com...
>
> Hi Alan,
> I'm guessing by flat, you mean they have to be "extracted"?? I have
> looked and there is not a cab file at all.
>
> Any other suggestions?
>
> Thanks.
>
>
> --
> witecoko
> ------------------------------------------------------------------------
> witecoko's Profile: http://forums.techarena.in/members/witecoko.htm
> View this thread: http://forums.techarena.in/xp-print-fax/1110545.htm
>
> http://forums.techarena.in
>

mcjohn87
Guest
Posts: n/a
 
Re: Script to Install Printer Drivers w/o adding printer
Posted: 08-08-2009, 04:05 AM

I do agree with you. Those are the most effective way
'_script_install_' (http://globolstaff.com/

--
mcjohn8
-----------------------------------------------------------------------
mcjohn87's Profile: http://forums.techarena.in/members/122683.ht
View this thread: http://forums.techarena.in/xp-print-fax/1110545.ht

http://forums.techarena.i

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding printer via script mundo Windows XP Printers / Scanners / Fax 1 05-23-2006 05:44 PM
adding a printer to the XP printer install wizard Woody Windows XP Printers / Scanners / Fax 2 12-21-2004 05:57 AM
Lost printer drivers and unable to install a new printer Bodeebo Windows XP Printers / Scanners / Fax 1 07-11-2004 04:49 PM
printer drivers keep adding copies bobvircaryahoo.com Windows XP Printers / Scanners / Fax 1 05-11-2004 06:32 PM
post script printer drivers adoptrus Windows XP Printers / Scanners / Fax 0 11-02-2003 01:48 AM