I simply wanted to change my user folder name in Windows 10.
pc\users\user-foldername
But after carrying some of the steps in this thread here each attempt to do so keeps showing me an error.
An unexpected error is keeping you from renaming this folder.
Error 0x80070057
The steps are essentially as per OP.
– James Woods Feb 03 '22 at 16:27I wasn't sure if I understood here. The folder user name is the one created when Windows is for the first time (and subsequently for any additional users)
– James Woods Feb 03 '22 at 16:29pc\users\user-foldername because renaming the profile does not change this folder name (in my experience thus far).
– James Woods Feb 04 '22 at 17:41peggycar, by doing what I describe, I have changed it toPeggy Carter.– Ramhound Feb 04 '22 at 19:14%UserProfile%, with two ways of naming the%UserProfile%what you want: (1) configure a local user first, then convert it to a Microsoft account once OOBE is exited; or (2) do what Ramhound stated if it's an existing Microsoft account. Allowing the email for a Microsoft account to be the%UserProfile%is inefficient due to the number of characters. – JW0914 Feb 04 '22 at 22:06%UserProfile%, as the name is set within numerous Registry keys and you will corrupt the user profile if%UserProfile%is simply renamed. The simplest way to do so is to create a new local user, name it what you want, copy all data from your current user's%UserProfile%to the new%UserProfile%, log in to the new user and delete the old. This, and what Ramhound suggested, are the simplest ways to rename the%UserProfile%without the risk of corrupting the user profile; once corrupted, the only solution is to create a new user – JW0914 Feb 04 '22 at 22:10