FSLogix Profile Containers. Failed to delete C:\Users\local_username (The directory is not empty.) (Access is denied.)

Graeme Bennett 1 Reputation point
2021-06-15T14:24:31.913+00:00

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.

FSLogix
FSLogix
A set of solutions that enhance, enable, and simplify non-persistent Windows computing environments and may also be used to create more portable computing sessions when using physical devices.
472 questions
0 comments No comments
{count} votes

13 answers

Sort by: Most helpful
  1. Leila Kong 3,696 Reputation points
    2021-07-16T10:01:28.99+00:00

    Hello @Graeme Bennett ,

    Thanks for your feedback.

    Did you try to downgrade to FSLogix 2004 (2.9.7349.30108) and check if the issue can be resolved?

    0 comments No comments

  2. Kuhn Marc 1 Reputation point
    2021-07-16T10:03:01.73+00:00

    Hi Leila

    no, but we will try to do so and let you know.

    Best regards,
    Marc


  3. Kuhn Marc 1 Reputation point
    2021-07-21T04:55:41.84+00:00

    Hi Leila

    as far as we can tell everything seems to work with 2004. Thanks for your help on that. I'm wondering why MS wasn't able to correct that in the new release just came out.

    Best regards,
    Marc

    0 comments No comments

  4. Kuhn Marc 1 Reputation point
    2021-07-21T19:44:24.74+00:00

    Hi Leila

    i'm sorry, wrong feedback. We still have the same issues with the Version 2004, some profiles can't be deleted after logout, so that's not the solution. At least for our case.

    Any other thoughts on this or was anybody able to solve that?

    Best regards,
    Marc

    0 comments No comments

  5. Andrea Marchi 1 Reputation point
    2021-07-29T06:49:25.643+00:00

    We also have the same problem with FSlogix version 2.9.7838.44263.
    Servers are 2016 datacenters.

    0 comments No comments