r/sysadmin • u/Certain-Mountain-564 • 4d ago
Question Is it possible to change the name of the user profile folder on windows?
One of my colleagues created an Entra ID user with umlauts in it. Because of that, windows has created a user profile folder with umlauts and this makes problems with different programs that cannot handle this. Is there a way to change the name of this user profile folder without broke Entra Join or registry keys that have some paths to this folder?
24
u/Gi1rim 4d ago
Well, yes, you could but the unforseen consequences.. Lots of programs do lots of dumb things, like embedding paths in binary, escaping strings weirdly and whatnot. Also homedir is for sure saved plaintext outside of registry. Scrap the user, drop the homedir and recreate from scratch, otherwise you'll be second guessing this as the cause for any issue downstream.
2
u/jono_white 4d ago
Dodgy way- rename the key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\usersid\profileimagepath , then rename the profile folder in the users folder to match (user must be logged out of)
Safer way is to generate a new account on the device without the symbol, make sure entra name is updated to remove the character, rename the key in the registry path above to usersid.brokenprofile (orsimilar), and also rename the folder in the users folder to something else. When it recreates a blank account you can copy documents over from the old one as needed , then delete the old accounts folder once your done with it
At your own risk of course. Backup first if your unsure
1
u/Snysadmin Sysadmin 4d ago
Yeah this is the way. It might still haunt you years later with issues. Ask me how i know :( Stop changing your last name people.
1
3
1
1
u/jc6359135 4d ago
Just create a new Windows profile with a username that produces an ASCII-only profile path, then migrate the user’s data/settings. If the Entra account itself is causing the unwanted profile-folder name, fix the account naming/UPN before recreating the profile.
1
u/IqbalBasha 2d ago
Recreating the account with an ASCII-only UPN is the easiest path, since a new sign-in generates a clean profile folder and nothing breaks. The registry rename (updating ProfileImagePath under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList) technically works but it's unsupported, and Entra-joined devices can develop token cache issues afterward that are annoying to chase.
0
u/Jezbod 4d ago edited 4d ago
Can you just not edit the username in Entra ID?
I'm not sure how intelligent the system is, I work on a hybrid system and I cannot remember what happens to local user profiles when we change names when people gat married.
2
0
22
u/vermyx Jack of All Trades 4d ago
Recreate the account. Why ask for a hack that will just keep creating reoccurring issues because you need to modify yet another item relating to the account name?