Link to home
Start Free TrialLog in
Avatar of tfountain
tfountain

asked on

printui.dll problem

OK, here are the Details:  I have an office setup with Win2K servers and XP Pro work stations.  On one of the servers I have created multiple print queues (some for different trays on the same printer).  I am using a script like the following to map network printers on the workstations:

REM Delete the printer if it is there
rundll32 printui.dll,PrintUIEntry /dn /q /n "\\server\US Tray2 Toshiba"
REM Map the printer
rundll32 printui.dll,PrintUIEntry /in /q /n "\\server\US Tray2 Toshiba"
REM Apply the saved settings file
rundll32 printui.dll,PrintUIEntry /Sr /q /n "\\server\US Tray2  Toshiba" /a "\\server\share\Tray2Toshiba.dat"


I created the saved settings file (Tray2Toshiba.dat) with the following:
rundll32 printui.dll,PrintUIEntry /Ss /n "\\server\US Tray2  Toshiba" /a "\\server\share\Tray2Toshiba.dat"
I did this while logged on as a user with the standard permissions that all user have (Domain Users, Local Administrator of the workstation). PS - all users have full control over the print queues.

The Problem:
When I run this script it does indeed map the printers and applies the saved settings file.  But, the settings in the saved settings file do not always take effect (i.e. - printing preferences tray select is set to auto select not Tray2 like it is supposed to be.)
The kicker is that sometimes it works and sometimes it does not.  When it does not I have to go to the PC and change the tray settings manually.  On top of that though, when I try to manually change these settings on some of the users PC who used this script, it will not save the changes.  It always goes back to auto select for the tray.

Any ideas?  I am assuming that some how it has to be a permission issue or something?
Avatar of tfountain
tfountain

ASKER

Problem solved.
After doing further research I found the driver to be the problem.  I was using HP's generic 8100 series PCL driver.  I downloaded the PCL6 driver for my specific printer, recreated my saved settings file and re-execute the scripts on the PC's.  It works perfectly.
ASKER CERTIFIED SOLUTION
Avatar of ee_ai_construct
ee_ai_construct
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial