User Profile Folder - Change User Account Folder Name

How to Change the User Folder Name of a User Profile in Windows 7


   Information
Normally, you could change your account name in User Accounts from the Control Panel (icons view), but that still would not change your accoun's user profile folder name in C:\Users.

This will show you how to change your account name and change the user profile folder name of any user account, including the built-in Administrator account (if enabled), in Windows 7 without losing anything in that user account. This will affect the user account's name for the C:\Users\(user-name) folder, Start Menu, Log on screen, Welcome screen, security permissions, etc......

You must be logged in as an administrator, and is a different account than the account you are changing the name of to be able to do this tutorial.

   Warning
Since editing a user profile and the registry can mess up Windows 7 if a mistake is made, it is highly advisable to create a restore point before doing this tutorial. This way if you make a mistake, you will be able to simply do a system restore to select and go back to this restore point to undo the mistake.




Here's How:

1. Log on to the user account (ex: Old Name) that you want to change the name of.

2. Save the current theme (ex: Old Name) for this user account. (see screenshot below)
NOTE: This is so that you will be able to change the theme back to this current theme in step 21 below later if you like.
Save_Theme.jpg
3. If you have any files or folders in your C:\Users\(user-name) profile folder that are set to be shared, then you will need to temporarily set them to not be shared for now. After you finish renaming the user profile folder name, you could set them to be shared again in step 23 below.

4. Log off the user account that you want to change the name of. (see screenshot below)
NOTE: If you do not have another administrator account to use, then create a new administrator account first, then log off. When finished with the tutorial, you can delete this newly created account.
Log_Off.jpg
5. Log on to an administrator account that is not the user account that you want to change the name of.

6. Open Windows Explorer, navigate to C:\Users, open the Users folder, right click on the user profile folder (ex: Old Name) that you want to change the name of, and click on Rename. (see screenshot below)
Step1.jpg
7. Type in the name (ex: New Name) that you want this user account's folder to have now and press Enter. Close the Windows Explorer window. (see screenshot below)
NOTE: If you are not able to rename the user folder for some reason (ex: in use), then boot into Safe Mode and try again.
Step2.jpg
8. If prompted, click on Continue and Yes (UAC) to approve renaming the user folder.

9. Open the Start Menu, and type regedit in the search box and press Enter.

10. If prompted by UAC, then click on Yes.

11. In regedit, navigate to the location below. (see screenshot below)

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Step3.jpg
12. In the left pane of regedit, expand Profilelist, and select each long number S-1-5-.... key one by one until your see the user account name (ex: Old Name) that you want to change the name of included in the Data column of ProfileImagePath in the right pane. (see screenshot above)

13. In the right pane of the long number S-1-5-.... key for the user account (ex: Old Name) that you want to change the name of, right click on ProfileImagePath, and click on Modify. (see screenshot below.
Step6.jpg
14. Change only the name (ex: Old Name) in the full path to the name (ex: New Name) that you want for the user account, and click on OK. (see screenshot below)
Step5.jpg
15. Close regedit.

16. Press the Windows + R keys to open the Run dialog, type netplwiz, and click on OK. (see screenshot below)
netplwiz-1.jpg
17. Check the Users must enter a user name and password to use this computer box, select the user account's old name (ex: Old Name), and click on the Properties button. (see screenshot below)
netplwiz-2.jpg
18. Change both the User name and Full name to the same new name (ex: New Name) from step 7 above, and click on OK. (see screenshot below)
netplwiz-3.jpg
19. Click on OK, and Restart the computer to apply. (see screenshot below step 17)

20. Log on to the now completely renamed user account (ex: New Name) from step 1 above.

21. When you log on to the renamed user account (ex: New Name) for the first time, you will notice that the desktop background wallpaper is now solid black. This is normal. Change the theme from the black Unsaved Theme to the theme (ex: Old Name) that you saved in step 2 above to restore the saved theme. (see screenshot below)
Theme-2.jpg
22. If you had to create a new administrator account at step 4 above to do this tutorial with, then you can now delete this newly created account if you like. This is not the New Name account.

23. If you had to set files to not be shared in step 3 above, then you can set them to be shared again if you like.

24. If you had Windows set to automatically log on to a user account at startup, then you can set that while logged on to an administrator account again if you like.




That's it,
Shawn




 
Last edited:
  • Like
Reactions: Arc
Nope, it gives the same message, saying that they can't find the file.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Professional x64
In that case, I would recommend to reverse the process to restore it back to default. :(
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
I did a restore and lost all my files, what do I do ?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Professional x64
If you used a restore point created right before doing the tutorial, I'm not sure how you would lose the files. Are they not listed in either location?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Nevermind I found them. Thanks for the help !
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Professional x64
Great news. :party:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Greatly appreciated! Very helpful.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Home Edition SP1
You're most welcome Tima, and welcome to Seven Forums. I'm glad it could help. :)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Excellent work Shawn! Thank you very much for your great help and these are not even in Microsoft windows official website.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio
OS
W7 x64
Error after changing Local folder name

Hi Shawn,

I have followed all your steps from the page "User Profile Folder - Change User Account Folder Name - Windows 7 Help Forums" At step 4 i had to create a new admin account. Now after pressing windows key and typing Accounts and when i select "User Accounts" it is giving me the following error. Please help! I have attached the error as an attachment. Please
help me out.

keerthi - is the old name of the local account

Regards

Kaushik
 

Attachments

  • Error.JPG
    Error.JPG
    23.5 KB · Views: 310
Last edited:

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio Ulrabook (SVT13123CNS)
OS
Windows 8.1 x64
Motherboard
Intel
Graphics Card(s)
Intel HD Graphics 4000 2GB
Hard Drives
500 GB
Antivirus
Microsoft Security Essentials
Browser
Firefox
Hello Kaushik, and welcome to Seven Forums. :)

At step 4, you haven't done anything to the account yet, so this must have been a previous issue.

You might see if doing a system restore using a restore point dated before you had this issue may be able to undo and fix it.

http://www.sevenforums.com/tutorials/700-system-restore.html
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Brink,

Once again, one of your tutorials saved my day. Thanks. I needed to change a user profile name. Heck, I may as well just start naming them "Brink"! ;)

Thanks,
Ken
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-8350 Eight-Core Processor
Motherboard
ASUSTeK Computer INC. M5A88-M
Memory
16.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 670
Sound Card
(1) Realtek High Definition Audio (2) NVIDIA Virtual Audio
Monitor(s) Displays
Through AVR to one of two TV/Projector
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Samsung SSD 850 PRO 256G SATA Disk Device
Case
Silverstone GD09
Cooling
Air
Antivirus
Kaspersky Internet Security, 2015
:thumbsup:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
whoami reports the uid after name change

Hi

Thank you very much for the excellent instructions on how to change a name. I successfully followed your clear instructions and almost everything I need changed.

There's one (small) thing that I would appreciate advice about if it's not too much trouble. It's not a big deal for me but I would like to have it right if possible.

After the name change, the 'whoami' instruction still returns the old account name. Is it a simple matter to fix that?

Thank you kindly for your help
S
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
toshiba
OS
win 7 professional 64bit
CPU
intel core i7
Antivirus
AVG
Browser
Chrome
Hello elhay, and welcome to Seven Forums.

I'm afraid the only way that I know of to change whoami is to create a new account with the name you want, and delete the old account when you like. :(
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Bah humbug

Thanks for the rapid reply. It's not the answer I wanted but what can one do?
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
toshiba
OS
win 7 professional 64bit
CPU
intel core i7
Antivirus
AVG
Browser
Chrome
I searched the Registry for all instances of the old account name and changed them to the new name. Lots of pointers to stuff in the old Users name path. With that done, I rebooted, clicked the new user name icon and the theme was the same. Everything the same. Nothing confused by the loss of the path to where it was installed or runs from.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell Inspiron E1505
OS
Win7 Ultimate 64bit
CPU
T5600
Memory
4gig
Hard Drives
500 gig
I had attempted to change the name, but was unaware that i needed to create another administrative account. When i restarted my computer, it wont let me log into my regular account and has set me up on a temporary account. I cannot access internet, have none of my files, and have no idea what to do! Please help!:(
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
sony vaio
OS
windows 7

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
After I did this on Windows 7 Starter, and went through the Registry to edit all the references from the old name to the new name, it fouled up Windows Update. Some parts of WU wouldn't automatically run and Windows failed to acknowledge they were running after manually starting them.

Fixing it involved a combination of Registry hacks to fix the not running automatically and deleting the update catalog files to force WU to redownload ALL the updates. This was complicated by Starter having some differences (like some files and folders that don't exist) from all other versions of 7, and there being no Starter specific how-to's for fixing broken WU on Starter.

Microsoft's Windows Update FixIt for Windows 7 *failed to fix this* on 7 Starter. It would end with a note that it failed but gave no clue as to the real nature of the problem and did not offer a way to use an advanced or aggressive mode.

Still took less time than using the netbook's recovery partition to wipe it and reinstall everything.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell Inspiron E1505
OS
Win7 Ultimate 64bit
CPU
T5600
Memory
4gig
Hard Drives
500 gig
Back
Top