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

Posted on 2009-07-15
Last Modified: 2012-05-07
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?
Question by:marvoyager
  • 3
LVL 14

Expert Comment

ID: 24867600
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.
LVL 14

Expert Comment

ID: 24867624
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

LVL 12

Accepted Solution

Daniel Borger earned 500 total points
ID: 24868220
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.
LVL 14

Expert Comment

ID: 24869250
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).

Author Closing Comment

ID: 31604025
This was resolved admirably.

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Citrix XenDesktop 7.6 Citrix Policies Audio
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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