Assistance Required: Configuring User Profiles to Be Stored on D: Drive for RDP Users in Windows Server 2022

Anonymous
2025-01-09T05:19:14+00:00

Dear Microsoft Community,

I am currently managing a Windows Server 2022 environment where multiple users access the server via Remote Desktop Protocol (RDP). By default, when an RDP user logs in, their user profile is created in the C:\Users directory. This has caused my C: drive to run out of space, resulting in system performance issues.

I am looking for guidance on configuring a policy or setting that would allow RDP users to create their profiles in a different location, such as the D:\ drive, to alleviate the storage burden on the C: drive.

  1. Server Version: Windows Server 2022.
  2. Requirement: Configure user profiles to be stored in D:\Users or another directory on the D: drive.
  3. Issue: The C: drive is running out of space due to multiple user profiles being created in the default location.
  4. Objective: Improve system performance by redirecting user profiles to a different drive.

I would appreciate detailed steps or guidance on the following:

  • Configuring this redirection through Group Policy or Local Policy.
  • Any potential risks or considerations involved in implementing this change.
  • Best practices to ensure smooth redirection without impacting user experience or system performance.

Your assistance and insights will be invaluable in helping me resolve this issue effectively.

Thank you in advance for your support!

Best regards,
Yogesh Meher

Windows Server Identity and access User logon and profiles

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-01-09T08:11:28+00:00

    Hello

    Thanks for posting in Microsoft Community.

    1. Create a new user profile directory on D: drive

    First, you need to make sure that the folder where the user profile is stored exists on the D: drive. You can create the folder manually or use a PowerShell script.

    To create the directory manually:

    Open File Explorer.

    Go to the D: drive and create a folder called Users.

    Path: D:\Users

    To create the folder using PowerShell:

    New-Item -Path "D:\Users" -ItemType Directory

    Make sure the folder has the appropriate permissions so that all users can read and write data to it

    1. Configure Group Policy to redirect user profiles

    You can configure the user profile storage path through Group Policy. Follow these steps:

    a. Open the Group Policy Management Console (GPMC)

    Open Server Manager on the server.

    Go to Tools > Group Policy Management.

    In the left pane, expand your domain, then right-click Default Domain Policy (or create a new policy if necessary), and select Edit.

    b. Modify the user profile path setting

    In the Group Policy Management Editor, navigate to:

    Computer Configuration > Administrative Templates > System > User Profiles

    Find the setting called "Set roaming profile path for all users who log on to this computer" and double-click to open it.

    Set to Enabled and enter the new user profile storage path:

    D:\Users%username%

    Description: The %username% variable ensures that each user's profile is stored in a subdirectory named after their username (for example, D:\Users\JohnDoe).

    c. Apply the policy

    Close the Group Policy Editor.

    To force an update of Group Policy:

    Open a Command Prompt (with Administrator privileges) and run the following command:

    gpupdate /force

    The next time the user logs on, the profile will be stored in the newly specified path.

    1. Verify Profile Redirection

    After configuring the Group Policy, ensure that the profile is successfully created on the D: drive after the user logs on:

    Have a user log on.

    Check that the user's profile is created in the D:\Users\ folder.

    You can also verify that the USERPROFILE environment variable correctly points to the new profile path by running the following command:

    set USERPROFILE

    I hope the above information is helpful to you.

    Best regards

    Runjie Zhai

    0 comments No comments
  2. Anonymous
    2025-01-10T04:29:26+00:00

    Thanks Rujie, for you prompt responce, I will try to implement your resolution, and update if problem is resolve at my end.

    My only one query is, I only wants to create Remote Desktop user profile in D Drive and Local administrator and local user should be C drive.

    Thanks

    Yogesh Meher

    0 comments No comments