Rename User Profile Folder in Windows 11: Safe Method
In this article
You cannot rename the user profile folder (the C:\Users\YourName folder) by simply right-clicking it. Windows locks that folder to your account, and renaming it directly breaks your profile. The safe way is to create a new local account with the desired name, sign into it once so Windows builds a fresh profile folder, and then move your files over. This guide walks through that process, plus the registry edit that changes the display name so the folder name and the login name match.
What You'll Need
- Administrator rights on the PC (the account you use must be an admin, or you must know an admin password).
- Enough free disk space to hold a copy of your files during the move.
- An external drive or cloud storage if you want a backup before you start (recommended).
- Patience: the whole process takes 15–30 minutes plus file-copy time.
Step-by-Step
- Back up your important files. Copy your Documents, Desktop, Downloads, Pictures and any project folders to an external drive or cloud folder. The method below moves files rather than deleting them, but a backup protects you if a copy fails midway.
- Create a new local administrator account with the name you want. Open Settings > Accounts > Other users and click Add account. Choose I don't have this person's sign-in information, then Add a user without a Microsoft account. Enter the desired username (for example, Alex), set a password, and finish. Labels can differ slightly by Windows 11 version and region, but the path Settings > Accounts > Other users is stable.
- Make the new account an administrator. On the same Other users page, select the new account, click Change account type, choose Administrator, and click OK. You need this so you can move files and edit the registry from the new account.
- Sign out of your current account and sign in to the new one. Use the Start menu > user icon > Sign out. Sign in with the new account. Windows creates a fresh profile folder at C:\Users\NewName. This first sign-in may take a minute while Windows prepares the profile.
- Copy your files from the old profile folder to the new one. Open File Explorer, go to C:\Users\OldName, and copy the contents of Desktop, Documents, Downloads, Pictures, Music and Videos into the matching folders under C:\Users\NewName. If a folder is access-denied, you may need to take ownership: right-click the folder > Properties > Security > Advanced > Change owner to your new account, then grant Full control. Only do this for folders you recognise as your own data.
- Optional: rename the old folder for clarity. Once your files are copied and you have confirmed nothing is missing, you can rename C:\Users\OldName to something like OldName_backup. Do not delete it yet; keep it until you are sure the new account works and all apps and files are in place.
- Sign back in to the old account if you need to remove it. Actually, to remove the old account, sign in to the new administrator account, go to Settings > Accounts > Other users, select the old account, and choose Remove. This deletes the account and its profile folder, so only do it after you have copied everything you need. Removing the account is what finally frees the old folder name.
- Set the new account as your daily login. Sign out and sign in to the new account. Pin your apps, set up your email and browser profiles, and confirm that OneDrive or other sync tools point to the new folder. If you use a Microsoft account, you can link it later in Settings > Accounts > Your info, but the folder name will remain the one created at first sign-in.
Common Mistakes
- Renaming C:\Users\Name directly. Windows stores the profile path in the registry and in environment variables. Renaming the folder breaks the link and can leave you with a temporary profile on next sign-in. Always create a new account instead.
- Deleting the old account too early. Removing the account deletes its profile folder. Copy and verify your files first.
- Forgetting to make the new account an administrator. A standard account cannot copy protected folders or change account types later.
- Assuming the Microsoft account name controls the folder name. The folder name is set when the profile is first created. Changing your Microsoft account display name does not rename C:\Users\YourName.
- Skipping the backup. File copies can fail on locked files (for example, an open Outlook data file). A backup gives you a fallback.
Tips
- Use a short, simple folder name with no spaces or special characters. It makes command-line tools and some older apps behave better.
- If you only want the login screen to show a different name, change the account display name instead: Settings > Accounts > Your info > Manage my account, or use the Local Users and Groups tool for local accounts. That does not change the folder name.
- Keep the old profile folder for a week or two after switching. Some apps store settings in AppData, and you may need to copy specific subfolders manually.
- If you use OneDrive, sign in to OneDrive in the new account and let it sync your files rather than copying the OneDrive folder by hand.
Troubleshooting
You get "Access is denied" when copying. Take ownership of the specific folder as described in step 5, or copy the files from within the old account to an external drive, then sign in to the new account and copy them back.
Windows signs you in to a temporary profile. This usually means the profile folder was renamed or damaged. Sign out, sign in to another administrator account, and check C:\Users for a folder named after your account. If it is missing or renamed, create a new account again and copy files from the old folder.
The new account does not appear on the sign-in screen. Restart the PC. If it still does not appear, sign in to an admin account and confirm the account exists under Settings > Accounts > Other users.
Apps lost their settings after the move. App settings often live in C:\Users\OldName\AppData. Copy the relevant AppData subfolders (Local, Roaming) into the new profile only if you understand which app they belong to; copying all of AppData can cause conflicts.
You cannot remove the old account. Make sure you are signed in to a different administrator account. Windows will not let you delete the account you are currently using.
Frequently Asked Questions
Can I rename the C:\Users folder directly?
No. Windows ties the folder to your account through the registry and environment variables. Renaming it directly can break your profile. Create a new account with the desired name instead.
Does changing my Microsoft account name change the folder name?
No. The folder name is created when the profile is first set up. Changing the display name later affects the login screen but not C:\Users\YourName.
Will I lose my files if I delete the old account?
Yes. Removing an account deletes its profile folder, including Desktop, Documents and Downloads. Copy everything you need to the new account first.
Can I do this without creating a new account?
Not safely. There is no supported Windows setting that renames an existing profile folder. The new-account method is the reliable route.
What happens to my installed programs?
Programs installed for all users remain available. Programs installed only for your old profile may need reinstalling. Your personal settings for those programs usually live in AppData and must be copied manually.
Is it safe to keep the old folder after removing the account?
Removing the account deletes the folder. If you want to keep a copy, rename or move the folder before removing the account, but note that Windows may still reference it. The cleanest approach is to copy your data out and then remove the account.