By default windows 10 Home has very weird system of how to choose the usernames when you create a new user in the system(in particular during intial set up).
So, when I set up my new windows 10 Home system it selected username as Foo. However, I want it to be Bar. So, according to this description I change the name of my main user account and its folder in particular. Also in resgistry I cleaned up all mentions of old Foo account and changed it to Bar(of course where it was possible). However, system variable %USERNAME% still gives me Foo when I echo it in the console(of course I rebooted after all my changes). In registry I see that system variable USERNAME is equal to SYSTEM, but I do not know from where the old user account name Foo appears when I try to echo its value. What does SYSTEM mean and how can I change the value of USERNAME variable?
P.S. the value of USERPROFILE variable shows correct value of C:\Users\Bar
ComputerName/OldUserAccountNameand there is no any option to chnage it – maks Apr 16 '20 at 22:38netplwizhelped(I couldn't navigate that menu from the settings). I've read the discussion and not sure why they said that it's not possible to change the account name and account's folder name. Actually the process of changing the account's folder name is described in the link that I presented in my original post. And with help ofnetplwizI managed to change actual username, so nowecho %USERNAME%gives meBaras I wanted. The only drawback: I had to reinstall Dropbox(in contrast Google Drive required only reconfiguration) – maks Apr 17 '20 at 00:46