General discussion


Citrix PS4.5 - Script Session Reset w/ Specific Criteria

By Mathius123 ·
Our environment is currently 5 x Windows 2003 Server Enterprise 32bit servers running Presentation Server 4.5 in a farm.

We have an application that does not close properly when a session is reset, which locks the user in the database the application uses. The application itself does not have a built-in idle timer, so I can't query it to execute the script I need. This also throws out the use of Group Policy, as the auto-reset functionality of Terminal Services won't work.

I need a script (MFCOM / POWERSHELL / VB / Anything) that helps me accomplish the following:

???Query farm (or just server) for a list of users by application, username, and idle time

???If idle time >= 15 minutes and application =X and username = X, do nothing

???If idle time >= 15 minutes and application = X and username = Y, pass the username to a variable that can then be added to the end of a website script we use:

???Reset the session tied to this user

I would like to run this script as a scheduled job via Windows Task Scheduler every 5 minutes. I have a list of users I want this script to work on and a list of users I want to be excluded from it. If it is easier to create this script per Citrix box, I am open to doing it that way and having each server run their own scheduled task to accomplish the above.

I do NOT have the Powershell or MFCOM SDK installed on these servers, so if you could point me to a resource on how to install/setup whatever coding infrastructure is needed for these scripts to run properly (including what command I need to pass to Windows Task Scheduler in order for the script to execute), I would really appreciate it.

Please let me know if there is any additional information required and I will do my best to get you the detail you need.

Thanks in advance!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums