-
Notifications
You must be signed in to change notification settings - Fork 1
Change windows username
Jip Claassens edited this page Jan 29, 2025
·
1 revision
Renaming a user profile folder in Windows 11 is not straightforward, as the folder name is tied to the user account configuration in the registry and several system settings. Here's how you can change the user profile folder name safely: Use the following process:
- Create a New Local Administrator Account
- Create a temporary administrator account to ensure you can manage your main account without being logged in to it.
- Go to Settings > Accounts > Family & other users.
- Click Add account under Other users.
- Create a local account by selecting I don’t have this person’s sign-in information, then Add a user without a Microsoft account.
- Assign administrative privileges by selecting the account under Other users, clicking Change account type, and choosing Administrator.
- Create a temporary administrator account to ensure you can manage your main account without being logged in to it.
- Rename the User Profile Folder
- Log in to the new temporary administrator account.
- Navigate to the C:\Users folder.
- Locate the folder named xabcd and rename it to Abcd.
- Update the Registry
- Press Win + R, type regedit, and press Enter.
- Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
- Look for the subkey that corresponds to your main user account by checking the ProfileImagePath value.
- For example: C:\Users\xabcd.
- Double-click on ProfileImagePath and update it to the new folder path: C:\Users\Abcd
- Save the changes and close the Registry Editor.
- Test the Changes
- Log out of the temporary administrator account.
- Log back into your main account and verify that everything is functioning correctly.
- Check that files, settings, and applications are accessible.
- Remove the Temporary Account
- Once you're sure everything is working as expected, delete the temporary administrator account:
- Go to Settings > Accounts > Family & other users.
- Select the temporary account and click Remove.
- Once you're sure everything is working as expected, delete the temporary administrator account:
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.