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