• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1281
  • Last Modified:

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?
  • 3
1 Solution
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.
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now