General discussion
Thread display: Collapse - |
All Comments
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Citrix PS4.5 - Script Session Reset w/ Specific Criteria
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: http://www.website.com/script.asp?kick=username
???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!