[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

printui.dll problem

Posted on 2004-11-04
2
Medium Priority
?
576 Views
Last Modified: 2006-11-17
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?
0
Comment
Question by:tfountain
2 Comments
 

Author Comment

by:tfountain
ID: 12523067
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.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12528188
Question answered by asker or dialog valuable.
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Loops Section Overview
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question