Improperly unloaded Profilecontainer leads to wrong RefCount and prohibites relogin

D Pi 21 Reputation points
2021-03-02T12:13:34.88+00:00

We are excessivly using Profile Containers (about ~90 so far) for terminal server accesses. Some of the single profiles are used by multiple clients who share the same room / building. Over the time we noticed a strange side effect, most of the time happening on userprofiles of departements doing shiftwork or having a quite bad vpn connection which leads to a bad reference count in registry where the terminalserver(s) (Windows Server 2019 Std. DC) think that there is still one user logged in with that container, which is not true. That means the mounted user profile folder //Users/MountedProfile is blocked by not existing processes, which means it can't be removed, nor can the user login as the folder is not accessable anymore. The only solution is to switch the user to another terminalserver or reboot the server to be able to delete the still mounted profilefolder. I wish to ask if anyone has experienced a similar behaviour and/or found a workaround to not let that happend again? Thanks for the help .. :-)

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.
493 questions
0 comments No comments
{count} votes

Accepted answer
  1. Karlie Weng 18,276 Reputation points Microsoft Vendor
    2021-03-03T05:58:00.093+00:00

    Hello @D Pi

    Please check if following two registry setting works :

    73607-image.png

    More Profile Container registry configuration

    Best Regards
    Karlie

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. D Pi 21 Reputation points
    2021-03-03T08:23:48.833+00:00

    Thanks for the quick answer .. :-) We hadn't set the first registry key. Hopefully that does help, but I have the impression it already did as after a scheduled server reboot last night the blocked profile container was automaticly removed. Before the registry change we had to delete the empty profile folder by ourself after reboot.

    We're going to update FSLogix on all TS at the weekend from v2.9.7237.48865 to the current v2.9.765.46150 and then observe the behaviour. Thanks and have a great sunny week .. :-)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.