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.
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?