Local Profiles Do Not Delete at Logoff - Citrix XenApp6 on Server 2008R2 w/ CPM

We recently deployed about 8 XenApp 6 Servers on 2008R2 with Citrix Profile Management.

One GPO manages these server, which has the Citrix UPM .adm installed. We use roaming profiles, so the setting in the Citrix .adm to 'Delete Locally Cached profiles on logoff' is Enabled, but its not functioning. Local user profiles are not deleted, but rather pile up by adding 001, 002, 003, etc, to each user's local profile folder each time they log on.

I see that UPHClean is not needed on Server 2008 or later as its a built in feature.

What would be preventing this from working as expected?

Thank you!
Who is Participating?
joharderConnect With a Mentor Commented:
There are two "Delete locally cached profiles" settings, one in Citrix profile policies and one in Microsoft policies.  Just to be safe, ensure that both are enabled.  

The registry setting above is based on the Microsoft GPO, so you're better off setting via GPO than manually adjusting the registry.
Are any other GPO features set in that policy being enforced?

My real question is: Is that GPO being read and used?  Do you see any other evidence of it being implemented, aside from the profiles not being deleted?
LeeTech_AdminAuthor Commented:
Yes the GPO is definitely being applied. Its configured to redirect Citrix User Profiles, My Docs, Favoraites, etc, and thats all working, as are all the other settings as far I can tell.

Seems like maybe a permissions issue with the local profile folders?
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Try this:
Add a REG_DWORD value named DeleteRoamingCache to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DeleteRoamingCache
Set the value data to 1


See if that will cause the profile to get deleted, if it is set on the local registry.
You are correct- the registry path given above is the one that should be controlled through group policy.  I was just trying to see if it were set manually on the computer, if it would then delete the profile.
LeeTech_AdminAuthor Commented:
I believe you are talking about this setting, which was also enabled already:

'Delete cached copies of roaming profiles'
Computer Configuration\Administrative Templates\System\User Profiles

Pretty odd. Could  these settings conflict?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.