After enabling "Delete cached copies of roaming profiles" in a GPO on you discover that user profile directories are being repeatedly created as users log in and out over time.
This issue can be caused when programs or services running on the TS server do not allow for the proper deletion of the user profile on logoff.
Determine what program or service is not properly releasing files or folders in the user profile path for deletion as the user logs off, then correct the issue.
Another way to resolve this issue will be to run a script that detects and deletes these empty user profiles. The scheduling of the script can be from every few minutes to once a day or week, etc depending on your environment.
Here is an example script.
REM Author: NetworkAdminKB.com
REM Created: Sept. 19th, 2008
REM Modified: Sept. 19th, 2008
REM Purpose: Universal batch file to delete the Empty local
REM profiles from Terminal / Citrix servers.
REM Run locally on the Terminal / Citrix Server.
Set LocalProfiles=%SystemDrive%\"Documents and Settings"
For /D %%i in (%LocalProfiles%\*.*) Do Call :Loop1 "%%i"
REM Echo %1
If Not Exist %1\NTUser.dat (
Echo Deleting: %1
rd /s /q %1
Article ID: 103, Created On: 9/17/2011, Modified: 9/17/2011