closing terminal server session when program is finished

al4629740
al4629740 used Ask the Experts™
on
I have a application that starts up when a user enters a terminal server session.  Is it possible to have the session automatically end when the user ends the application?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Carl WebsterCitrix Technology Professional - Fellow
Top Expert 2010

Commented:
From my understanding, if the application s launched from the user's TS tab in ADUC or via GPO, once the application is closed, the user's session is closed.
Commented:
You can create a batch file, containing the following commands:
cd <path_to_the_folder_containing_your_application>
start /wait <application_executable>
logoff

Now define this batch file as the starting application

Author

Commented:
something is wrong with my script.  can you tell what it is?

cd \\2003server\CAP Tracking System at CAP\
start /wait "CAP Tracking System at CAP.exe"
logoff

Commented:
Is the batch file on the same server that the user is connecting to?  If so, do they have access rights to read and execute in the folder where the batch file is located?

Author

Commented:
that was it thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial