using VBS script

By slatimer76 ·
Can you setup a login script to load printer drivers for a mapped printer if the drivers are not present on the computer? I figure I would need to have the .inf file on a share that can be reached by the computer to find the drivers, but for the actual scripting, I am not sure.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You should be able to accomplish this

by cmiller5400 In reply to using VBS script

I had written a script eons ago to add printers. there is an option to specify where the driver(s) are located.

Collapse -

Mapped or shared?

by 1bn0 In reply to using VBS script

'Add printers
AddPrinterConnection "\\PrnSrvr\Printer1"
AddPrinterConnection "\\PrnSrvr\Printer2"
If IsAMemberOf(objNetwork.UserDomain,objNetwork.UserName,"ColorPrinter") Then AddPrinterConnection "\\PrnSrvr\ClrLsr"

'Map printer

Net Use LPT3 \\PrnSrvr\Printer1

If the printer is shared from a windows print server the server should have the drivers and install them correctly.

The Net Use command is only necessary for programs (DOS apps generally) that do not recognise installed windows printers and will only print to a "hardware" device.

Collapse -

re: mapped or shared

by slatimer76 In reply to Mapped or shared?

I agree with you that the printer should install the drivers. I am using Windows Server 2008 standard (x64) and when i try to install the network printer, it tells me the drivers are not installed. I am not sure if it is an HP thing (using HP printers) or a windows 2008 thing, the drivers not being fully compatible. According to HP, the drivers are for 2008 as well. When i use the script, if i have not manually installed the drivers on the admin login, an error occurs. Thanks for the replys.

Back to Software Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums