Session Hosts not clearing C:\Users folder even wtih GPO enabled to delete them

slade1040 21 Reputation points
2020-12-08T14:54:30.613+00:00

Entire RDS environment is Sever2016.

We enable the following GPO for our session hosts that will delete profiles older than x days of inactivity on restart.
Computer Configuration\Policies\Administrative Templates\System\User Profiles. Enable Delete User Profiles Older than a Specified Number of Days on System Restart.

While this GPO appears to delete the profiles listed under System Properties-->User Profiles after a restart, it does nothing to the folders for those users under C:\Users.

Anyone else see this or know why its occurring? Anyone know how to get the GPO to clear the users folders as well?

Windows for business Windows Client for IT Pros User experience Remote desktop services and terminal services
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-12-09T06:44:03.777+00:00

    Hi,

    Please be informed that there is no such built-in GPO to totally delete the users folders in Windows system.

    We suggest that you could try using Mandatory User Profiles or roaming user profile in your RDS environment. Mandatory user profile will create a new user profile each time when a user logs into the session host and delete it when logging off, while roaming user profile will remove the user profile to the file share sever when a user logs off and again load it back when the user logs in next time.

    For your reference:
    Create mandatory user profiles
    https://learn.microsoft.com/en-us/windows/client-management/mandatory-user-profile
    Deploying Roaming User Profiles
    https://learn.microsoft.com/en-us/windows-server/storage/folder-redirection/deploy-roaming-user-profiles

    If you would not like both of them and want to delete the users folders totally, you may need to search for third party tools or write script to achieve it.

    Thanks,
    Eleven

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    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.