We have windows 2008R2 SP1 server with RDS installed that is running Citrix Xenapp 6.5. We are using a mandatory profile with folder redirection and login and logout script. We are experiencing an issue where when a user’s session is disconnected the Logout script do not run and were are left with Stale user profile folders. This causes issue because we need to manually remove these old folder from the servers weekly.
I have tried installing the following hotfixes but nothing seem to resolve the removal of the profiles.
http://support.citrix.com/article/CTX129229
http://support.microsoft.com/kb/2661663/en-us
We also get in the servers Application log
Event 1530 from User Profile Service - Saying Outlook 2010 still has registry handles open
Followed by
Event 1533 from User Profile Service - Saying it can't delete the users profile folder.
I have also Added the GPO from the MS article below but the logoff script and the folder are still not deleted.