Page 1 of 1

Renaming C:\Users\username in Windows 10

Posted: Sat Sep 29, 2018 9:28 pm UTC
by somitomi
I want to rename the folder belonging to my user in C:\Users, because it contains an accented character and apparently you can't expect a highly advanced piece of engineering software to deal with that. At all. However simply renaming said folder from the adminsitrator user doesn't work, Windows won't find it next time I log in and creates temporary settings for the user. I'm kind of attached to literally all of my settings, so the question is how do I tell Windows where to look for them?

Re: Renaming C:\Users\username in Windows 10

Posted: Sat Sep 29, 2018 9:57 pm UTC
by Xanthir
Can you rename the account itself? Failing that, create a new account with a good name, then just copy the files over and delete the old account?

Re: Renaming C:\Users\username in Windows 10

Posted: Sun Sep 30, 2018 12:31 am UTC
by EvanED
The workaround I'd try first is to create a symbolic link that has a good name, pointing at the bad name.

Re: Renaming C:\Users\username in Windows 10

Posted: Sun Sep 30, 2018 3:48 am UTC
by commodorejohn
I'd love to know if there is an answer to this question, but in my experience on basically every version of Windows from XP onward, getting the system to actually recognize a change in the user's profile folder apparently involves making a sacrifice to the Elder Gods or something.

Re: Renaming C:\Users\username in Windows 10

Posted: Sun Sep 30, 2018 7:36 am UTC
by somitomi
Xanthir wrote:Can you rename the account itself? Failing that, create a new account with a good name, then just copy the files over and delete the old account?

I renamed it already, but the folder didn't change.
EvanED wrote:The workaround I'd try first is to create a symbolic link that has a good name, pointing at the bad name.

I will try that and report back

EDIT: Well, I can log in normally, but I still can't run Ansys. I think that's because it still gets the path with an accented character when it creates some files in the user folder.

Re: Renaming C:\Users\username in Windows 10

Posted: Wed Oct 03, 2018 4:12 pm UTC
by somitomi
Okay, this solution worked for me:
- log into administrator account
- change folder name in explorer
- run "regedit", go to "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProfileList"
and find the "S-1-5-something" subfolder where the "ProfileImagePath" property is the path you wish to change
- change it
- use preferred method (control panel if you ask me) to rename user account
According to the edit made to that post, I might run into issues later, but a complete wipe & reinstall is long overdue for this computer anyway.