Dear @Jacky,
Thank you for posting your question in the Microsoft Q&A forum.
We apologize for any inconvenience you may encounter when using our services/ products. Based on your description, kindly try these following steps:
Create a new admin account and migrate the data (safest way to change folder name)
- Create a new local administrator (with the desired name, e.g., Administrator or another).
Settings > Accounts > Other users > Add account > “I don’t have this person’s sign‑in information” > Add a user without a Microsoft account > set a strong password > Change account type > Administrator. - Sign out of the old account and sign in to the new one once (so Windows creates C:\Users<newname>).
- Copy profile data from C:\Users\oldname to C:\Users<newname>:
- Copy Documents, Pictures, Desktop, Favorites, and app data as needed.
- Avoid copying NTUSER.DAT or hidden system files wholesale, those are per‑SID and can cause issues.
- Re‑configure apps that store absolute paths (VPN clients, developer tools, scheduled tasks, etc.).
- When you’re sure everything works, remove the old account.
This approach preserves integrity because Windows builds the new profile with the correct SID > path mapping from the start.
Rename the existing profile folder and fix the registry
- Create/Sign in to a separate local admin (temporary helper account).
- Rename the folder in PowerShell (Run as Administrator):
# Run from the helper admin account
Rename-Item "C:\Users\oldname" "C:\Users\Administrator"
- Update the profile path in the registry:
- Press Win + R > type
regedit - Go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList - Find the subkey whose ProfileImagePath points to C:\Users\oldname (it’s the SID of the account you renamed).
- Change ProfileImagePath to C:\Users\Administrator.
- Press Win + R > type
- Check and update common hard‑coded references:
- Scheduled Tasks: Task Scheduler > each task’s Actions paths.
- Services (if any custom binaries reference the old path).
- Environment variables or scripts referencing C:\Users\oldname.
- App‑specific configs (editors, IDEs, package caches, OneDrive sync location, etc.).
- Reboot and test.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.