I am having an issue where some of the FSLogix temporary folders do not get deleted when the user logs off. The next time they log in, they will get a folder C:\Users\local_username1 (where the '1' is appended to the end).
This causes issues with some programs; they will error trying to access the users %TEMP% or %TMP%.
The error in C:\ProgramData\FSLogix\Logs\Profile states that:
Failed to delete C:\Users\local_username (The directory is not empty.)
Failed to delete C:\Users\local_username (Access is denied.)
Here is some background information:
- Windows Server 2019 Standard [10.0.17763 N/A Build 17763]
- Microsoft FSlogix Apps [2.9.7654.46150]
- Six (6) Servers in the collection. Aproximately 80 users per server.
- VHD located on a Samba share; RAID 10; good performance
- Policies
Administrative Templates
FSLogix
Days to keep log files Enabled 1
Enable logging Enabled All logs enabled
FSLogix/Profile Containers
Delete local profile when FSLogix Profile should apply Enabled
Enabled Enabled
VHD location Enabled \\SOMESERVER\Profiles
FSLogix/Profile Containers/Advanced
Keep local folder after user logs out Disabled
Redirect temporary file folders to local computer Enabled Redirect TEMP, TMP and INetCache to local drive
Any suggestions would be appreciated.