• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 684
  • Last Modified:

Logon script to add 32bit printer drivers to 32bit system from 64bit server

Experts,
I have a 64bit print server that serves a variety of printers including HP, Sharp, and Savin. I am using a logon script to assign the printers to users, but the Sharps and Savins all fail because a 32bit driver is needed for the 32bit systems. The HP's dont suffer from this problem. I have moved the Sharps and Savins to a 32bit print server, but that is only a tempory solution and need to be able to serve those printers from my 64bit system. So what I am looking for is recomendations on how to script the installation of the 32bit printer drivers to the 32bit clients.

Below you will find my logon script:
Option Explicit
'Printer variables
Dim objPrinter
Dim strPathSharpAcct, strPathSharpEst, strPathSharpRec, strPathSavin, strPathHP5si
Dim strPathSharpPM
 
 
'Network Drive variables
Dim objNetwork
Dim strDriveF, strDriveT, strDriveU, strPathF, strPathT, strPathU
 
'Printer paths are defined
 
strPathSharpEst = "\\serverdv1a\SHARP AR-M237 Estimating"
strPathSharpRec = "\\serverdv1a\SHARP AR-168S Reception"
strPathSharpPM = "\\serverdv1a\SHARP PM"
strPathSharpAcct = "\\serverdv1a\SHARP AR-M237 Accounting"
strPathHP5si = "\\servernas1b\HP LaserJet 5Si"
strPathSavin = "\\serverdv1a\SAVIN C3828 PCL 5c"
 
 
'Network drives and paths are defined
strDriveF = "F:"
strDriveT = "T:"
strDriveU = "U:"
strPathF = "\\servernas1b\server"
strPathT = "\\serveracct1a\timber"
strPathU = "\\servernas1b\users"
 
 
'Below this line Printer mapping takes place
objPrinter.AddWindowsPrinterConnection strPathSharpAcct
objPrinter.AddWindowsPrinterConnection strPathSharpEst
objPrinter.AddWindowsPrinterConnection strPathSharpRec
objPrinter.AddWindowsPrinterConnection strPathSharpPM
objPrinter.AddWindowsPrinterConnection strPathHP5si
objPrinter.AddWindowsPrinterConnection strPathSavin
 
'Below this line network drive mapping takes place
On Error Resume Next
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveF, strPathF, True
objNetwork.MapNetworkDrive strDriveT, strPathT, True
objNetwork.MapNetworkDrive strDriveU, strPathU, True
 
WScript.Quit

Open in new window

0
fyrfyter
Asked:
fyrfyter
1 Solution
 
RobSampsonCommented:
Hi, I would look at running a
RUNDLL32 PRINTUI.DLL,PrintUIEntry
command on the client machines to retrieve a driver for the 32 bit architecture.

Usage info is availabe here:
http://www.robvanderwoude.com/2kprintcontrol.html

It can be very fiddly to figure out the syntax for such a command though.

Regards,

Rob.
0
 
fyrfyterAuthor Commented:
Hi Rob,
Sorry I am so late in getting back. I was away on business. Anyway, I was just looking for some ideas and since you are the only who stepped forward, I will close the question and award you the points. I was already aware of that solution, but like I said, was looking for some alternatives.

Thank you for taking the time to respond to my question.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now