Running "All User" startup script in Citrix Metaframe Presentation Server 3

Howdy Gurus,

I have a single Citrix server hosting a QA Delphi program and report scenario. I've been asked to implement a logon script that CANNOT be added to the domain logon script coming off the SysVOL.

My first thought is to put it into the "All Users" STARTUP folder for when they log on, and it works FINE when they're going in through RDP.

HOWEVER, all of my end user's ONLY connect through the Program Neighborhood Agent from their system tray and it appears that it's not hitting the start up folder to execute this file.

And unfortunately, a GPO is out of the question from my security folks.

Anyone have a pointer for me?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robin CMSenior Security and Infrastructure EngineerCommented:
As you've discovered, the stuff in All Users only gets processed when an explorer shell starts. If you're running published applications you don't get an explorer shell.

The only way I can think of to do what you want is to change your published application such that the application is actualy a script that does whatever you need it to and then runs your QA Delphi program.

So your published app becomes a .cmd file.

Easy. And I know it works because I do this for a few things already.
Robin CMSenior Security and Infrastructure EngineerCommented:
Here's a sample .cmd file that I publish
The DOS box dissapears as soon as the start line is reached.
@echo off
rem Run Training app on normal (live) terminal servers.
rem RCM, Dec 2003
echo Configuring environment for Training...
set DB=train
set RUNACCESS=P:\TRAINXPREPORTS\RunAccess2\RunAccess2.cmd
echo Launching Training App...
start C:\IngresII\ingres\bin\w4glrun.exe "C:\Apps\Bin\DeskTop.img" -dtrain::train

Open in new window

Daniel BorgerSenior Citrix Engineer- CCEECommented:
You can add your commands to the usrlogon.cmd on the server, that get processed at logon.  Or make a call to your script from there.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Robin CMSenior Security and Infrastructure EngineerCommented:
Fine assuming you want to run the same stuff irrespective of the application being launched.
Also usrlogon.cmd will only run once if session sharing is enabled and multiple apps are published from the same server.

Whereas publishing a script which then calls the app will work for all eventualities (bar disconnected sessions being reconnected to).
marvoyagerAuthor Commented:
This was resolved admirably.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.