I am running Citrix PS 4.5 with 5 servers on the farm. Is there a script that can be run from a client machine that will log them off of that session. The reason is because users like to X out and it leaves that ghost session on the server side, then they try to reopen and it pulls up the old hung session.

Thanks!

Mike

2 Spice ups

No script needed - just create a GPO:

User Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Session Time Limits

Enable “Set Time Limit for Disconnected Sessions” and set your desired time limit

Also enable: Computer Configuration\Administrative Templates\System\Group Policy\User Group Policy Loopback processing mode ← this makes it so the user configuration above only applies when the user logs into the computers within the OU that this policy is applied to.

Apply this GPO to the OU containing your Citrix Servers and you should be all set.

Hi Michael,

Thanks for the quick follow up. The problem is that if I set it at the GP level, it will log off all disconnected sessions. This will work for some of our apps and not so good for the rest.

For example, we have a published application that consists of a procurement spreadsheet that a user may have been working on entering in many rows of requisition data and if they get disconnected for some reason, they will loose all the data entered.

This is why I’d like to be able to control the log off at the published application level, not the server level. Does that make sense?

Thanks

I’m sure scripting the log-off is possible, although I’m not sure how productive it would be. I have always controlled the problem you presented through a combination of group policies and user training. Scripting it at the client end would be a can of worms I wouldn’t want to open.

There is this link that I found that could help, it speaks of a client app that will disable the “X” I’m not sure if it will work with 4.5 but you could always give it a shot (if you haven’t already).

http://forums.citrix.com/message.jspa?messageID=1393843