Rename a Windows User Account — and Why the User Folder Keeps the Old Name
You renamed your Windows account, but C:\Users\<old-name> still shows the old name — or you want the folder itself renamed and can’t find a way to do it.
Why: Windows sets the profile-folder name once, at first sign-in, and never changes it when you rename the account. Microsoft has confirmed this is by design. The account name and the folder name are independent — renaming one does nothing to the other.
Rename the account (the supported way)
Local account (Windows 11):
- Start → type Control Panel → open it.
- User Accounts → Change your account name.
- Type the new name → Change Name.
The Settings app has no rename option for a local account — Microsoft’s own instructions send you to Control Panel.
PowerShell alternative, in an admin window:
Rename-LocalUser -Name "OldName" -NewName "NewName"
This changes the account’s logon name only. It does not touch C:\Users.
Don’t use
wmic useraccount … rename— WMIC is deprecated and is being removed from Windows.
Microsoft account: change your name at account.microsoft.com → Your info → Edit name. This updates the display name on the sign-in screen and in apps (allow up to 24 hours to propagate). It changes nothing on disk and doesn’t alter your sign-in email.
Why the user folder still shows the old name
Renaming the account never renames the profile folder — Microsoft “confirmed it to be by design.” The old article that documented editing ProfileImagePath in the registry (under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList) is now archived and scoped to Windows 7, with an explicit warning: don’t apply it on Windows 10 or later. It can break winget, and if the folder name and the registry path disagree you’ll be dropped into a temporary profile where anything you save is lost at sign-out.
So on Windows 11: don’t hack the registry to rename the folder.
The safe way to get the folder name you want
Microsoft’s own fix for a bad profile is to create a new account and copy your data into it:
- Settings → Accounts → Other users → Add account.
- Choose “I don’t have this person’s sign-in information” → “Add a user without a Microsoft account.” Name it exactly what you want the folder to be.
- Make it an admin: select the account → Change account type → Administrator.
- Sign in to the new account once — this creates
C:\Users\<NewName>. Then copy your files (Documents, Pictures, Desktop, and so on) from the old profile into the new one. - When everything is moved and verified, remove the old account the clean way — see Delete a Windows user account.
For a Microsoft account, Windows generates the folder name from your email address rather than from a name you type.
Doing it right on a fresh install (Windows 11, 2026+)
Since the May 2026 update (KB5089573) for Windows 11 24H2/25H2, setup lets you choose the user-folder name on the Device Name page during initial setup. Skip it and Windows generates the name from your Microsoft account email. This option exists during setup only, not on an existing install.
FAQ
I renamed my account but C:\Users still has the old name — did I do it wrong? No. Windows never renames the profile folder when you rename the account; it’s by design, and the folder name is locked in at first sign-in.
Can’t I just rename the folder and fix the registry? Microsoft warns against it on Windows 10/11 — it can break winget and land you in a temporary profile where your changes vanish at sign-out. Use the new-account-and-copy method instead.
Why is my folder only the first few letters of my email? Windows builds Microsoft-account folder names from the email address. You can pick a custom one only during initial setup (Windows 11 with the May 2026 update or later).
I’m stuck in a “temporary profile” after editing the registry — help? Sign in with another admin account and look under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList for a key ending in .bak — that’s the temp-profile signature. See Temporary profile sign-in fix. Don’t save work in the temp profile; it’s discarded at sign-out.
Sources: Microsoft — Renaming user account doesn’t change profile path (KB2454362), Microsoft — How to change your user account name, Microsoft — Rename-LocalUser