ANAVEM
Reference
Languagefr
Change User Profile Folder Name in Windows 11 25H2

Change User Profile Folder Name in Windows 11 25H2

Rename your Windows 11 user profile folder in C:\Users\ using two methods: OOBE setup (fresh install on 25H2+) or post-installation registry editing. Covers risks, prerequisites, and step-by-step instructions for both approaches.

Emanuel DE ALMEIDA
3/13/2026 12 min 0
mediumwindows11 9 steps 12 min

Overview

Windows 11 automatically generates user profile folders in C:\Users\ based on your Microsoft account name — often resulting in truncated or cryptic names like johnd instead of JohnDoe. Microsoft does not officially support renaming existing profile folders, but two reliable methods exist depending on your scenario.

  • OOBE Method (Windows 11 25H2+): Set a custom folder name during initial setup using a local account — easiest and safest approach.
  • Registry Method (existing installations): Rename the folder post-installation via registry editing and file system manipulation — advanced, requires admin rights and a backup.
Warning: The registry method carries data loss risk if steps are not followed precisely. Back up your system before proceeding.
Implementation Guide

Full Procedure

01

Check Your Windows 11 Version

First, determine which method you can use based on your Windows version. Press Win + R, type winver, and press Enter.

winver

Look for build number 26100 or higher for Windows 11 24H2/25H2. If you see 25H2, you can use the OOBE method during fresh installation. For existing installations, you'll use the post-installation method.

Pro tip: Update to the latest Windows 11 version via Settings > Windows Update before attempting either method for best compatibility.
02

Method 1: Change Profile Name During OOBE Setup (25H2 Only)

This method works only during initial Windows 11 25H2 setup. When you reach the Microsoft account sign-in screen, press Shift + F10 to open Command Prompt.

cd oobe
oobe\bypassnro

The system will reboot and allow local account creation. During the user creation screen, press Shift + F10 again and run:

set userfoldername=YourDesiredName

Replace 'YourDesiredName' with your preferred folder name (5+ alphanumeric characters, no spaces). Complete the setup normally.

Warning: This method only works on fresh Windows 11 25H2 installations during OOBE. You cannot use it on existing systems.
03

Create a New Administrator Account

For post-installation renaming, create a secondary admin account first. Open Settings by pressing Win + I, navigate to Accounts > Family & other users, then click 'Add someone else to this PC'.

Choose 'I don't have this person's sign-in information', then 'Add a user without a Microsoft account'. Create a local account with your desired username (this will become your folder name).

net user NewUserName /add
net localgroup administrators NewUserName /add

Alternatively, use the GUI method. After creation, sign out and log into this new account to verify it works.

Pro tip: Use the exact folder name you want as the username during creation - this saves registry editing later.
04

Identify User Account SIDs

Log back into your original account and open Command Prompt as administrator. Run this command to list all user accounts and their Security Identifiers (SIDs):

wmic useraccount get name,SID

Note down the SID for your original account - it looks like 'S-1-5-21-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx'. You'll need this for registry editing.

Verification: The output should show both your original account and the new account with their respective SIDs.

05

Edit Registry Profile Path

Press Win + R, type regedit, and press Enter. Navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Find the folder matching your original account's SID. Double-click 'ProfileImagePath' and change the path from:

C:\Users\OldFolderName

to:

C:\Users\NewFolderName

Click OK and close Registry Editor.

Warning: Always backup your registry before editing. Incorrect changes can prevent Windows from booting.
06

Rename the Physical Folder

Open File Explorer and navigate to C:\Users\. Right-click your old profile folder and select 'Rename'. Change it to match the name you set in the registry.

If you get a 'permission denied' error, restart Windows in Safe Mode:

shutdown /r /o /f /t 00

Select Troubleshoot > Advanced options > Startup Settings > Restart, then press F4 for Safe Mode. Try renaming the folder again.

Verification: The folder should now have your desired name in C:\Users\.

07

Create Symbolic Link for Compatibility

Some applications may still reference the old folder path. Create a symbolic link to maintain compatibility. Open Command Prompt as administrator and run:

mklink /D "C:\Users\OldFolderName" "C:\Users\NewFolderName"

This creates a junction point that redirects old path references to the new location.

Verification: You should see a folder icon with an arrow overlay at the old location, and accessing it should show your profile contents.

Pro tip: Keep this symbolic link for at least a month to catch any applications that use hardcoded paths.
08

Test and Clean Up

Restart your computer and log into your original account. Verify that:

  • Desktop items appear correctly
  • Documents, Downloads, and other folders work
  • Installed applications launch properly

If everything works, delete the temporary admin account. Open Settings > Accounts > Family & other users, select the temporary account, and click 'Remove'.

Alternatively, use the classic interface:

sysdm.cpl

Go to Advanced tab > User Profiles > Settings, select the temporary profile, and click Delete.

09

Update Application Paths

Some applications store absolute paths to your profile folder. Update these manually:

  • OneDrive: Settings > Account > Choose folders
  • Browsers: Check download folder settings
  • Steam/Games: Verify save game locations

For OneDrive specifically, you may need to unlink and relink your account:

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

Then restart OneDrive from the Start menu.

Warning: Some applications may require reinstallation if they can't adapt to the new profile path.

Frequently Asked Questions

Can I change my Windows 11 user profile folder name without reinstalling Windows?+
Yes, but it requires advanced registry editing and file manipulation. The process involves creating a temporary admin account, editing the ProfileImagePath registry entry, renaming the physical folder, and creating symbolic links for compatibility. This method works but isn't officially supported by Microsoft and carries risks of system instability.
What's the difference between changing the account name and the profile folder name in Windows 11?+
Changing the account name (visible in Settings or netplwiz) only affects the display name and login screen. The profile folder in C:\Users\ remains unchanged. To change the actual folder name, you need to edit the registry ProfileImagePath entry and rename the physical folder, which is a more complex process that affects where Windows stores your user data.
Does Windows 11 25H2 officially support changing profile folder names during setup?+
Yes, Windows 11 25H2 introduced limited official support for customizing profile folder names during OOBE setup. You can press Shift+F10 during initial setup, use the 'set userfoldername=YourName' command, and Windows will create the profile folder with your specified name. This is much safer than post-installation methods but only works during fresh installations.
What happens to my applications after changing the Windows 11 profile folder name?+
Most applications will continue working if you create a symbolic link from the old folder name to the new one using 'mklink /D'. However, some applications that hardcode profile paths may require manual path updates or reinstallation. OneDrive typically needs to be reset, browsers may need download folder updates, and games might need save file verification.
Is it safe to change user profile folder names in Windows 11 and what are the risks?+
Microsoft doesn't officially support changing profile folder names on existing installations due to potential system instability. Risks include profile corruption from incorrect registry edits, application failures from hardcoded paths, permission issues, and system file reference problems. Always backup your registry and data before attempting this process, and consider testing in a virtual machine first.
Emanuel DE ALMEIDA
Written by

Emanuel DE ALMEIDA

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...