|
Access denied changing ICA autocreated printername of user
I've tested on a Windows 2003 Standard Edition Spanish and Presentation Server 4.0 ES
and on Windows 2000 SP4 English and Presentation Server 4.0 English
In a Citrix Presentation Server autocreation printer's name are "OLD STYLE".
I need to rename printer's name on ICA session for each user.
I want to do it only for default printer as you can see in next script:
--------------------------------------------------------------------------------------------------------------------------------------
REM Reads the default printer from the registry
"%SystemRoot%\Application Compatibility Scripts\acregl.exe" DefPrint.cmd DefaultPrinter "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows" "Device" ""
.
.
.
call DefPrint.cmd
REM 2000 :: PrinterString = HP DeskJet 820Cse on oz/%clientname%/session 1
REM Attempt to rename the printer...
rundll32 printui.dll,PrintUIEntry /Xs /n "OlPrinterName" printername "NewName"
.
.
.
--------------------------------------------------------------------------------------------------------------------------------------
This script starts when you launch one specific citrix application. If domain user do it a popup show "rundll32.exe ... access denied" message.
Then i've test it with a power user or a user belongs to a administrator group and appears next problem:
If two users (same or diferent) open an ICA session if they have same mapped local printer only the first user can rename printername, when second user launch application apperas a popup with "error printer already exists".
Anybody can help me ?
Thanks.
>> Access denied changing ICA autocreated printername of user
|