Windows – Changing “User Name” hidden the account, how can I return it

user-accountswindows 7

The account in Windows 7 64 bit on my notebook was occasionally named not as I usually prefer ("Toshiba", chosen by the shop manager without asking me), so after some time I renamed it to another (Myname) in Control panel. As known, it's not actual renaming, but changing "Full name" that will be used for login instead of "User Name". The folder is still named "Toshiba")

After that when I was logged in as "Myname" I looked at classic [control userpasswords2] dialog and noticed that the properties of the account allows editing both, so I changed "User Name" field from Toshiba to Myname to match "Full Name" so they both become Myname. So starting that what happened (no restart):

  • After pressing ok for Properties dialog this account disappeared from the [control userpasswords2] dialog list.
  • User account in "Control Panel" started showing the blank icon for my current account and dialogs about changing anything even didn't contain labels for fields. I decided not to edit them.
  • I quickly created a new admin account and restarted. I didn't see my Toshiba/Myname account as a choice for login so logged in as the new admin.

Now I have this renamed account listed in [control userpasswords2] as Myname/Myname, safely existing c:\Users\Toshiba folder, Windows NT\ProfileList\ entry in the registry pointing to c:\Users\Toshiba.

What should I do to return my account safely? Should I also report this as a bug?

Best Answer

I would always do user management in lusrmgr.msc. Only there you have full control of a user account. Also, when you rename an account, it doesn't change the name of the profile directory. The (IMHO) best way to clean up your issue is:

  • log in as Administrator (you probably have to enable the account first and set a password)
  • delete the renamed user account (not its profile folder)
  • create a new user account with the correct name
  • log into the new account to create a new profile folder, then log off again
  • log in as Administrator again
  • copy (don't move!) your files from the old profile folder to the new profile folder (if you get permission denied at this point, you have to take ownership first)
  • log in as the new user again and check if you can access your files all right

When everything is working, you can delete the old profile (in the search box type view advanced system settings and press enter, then click Settings... in the User Profiles box, select the profile that says Account Unknown and click Delete).

You will have to do your account's configuration over with this procedure, but you'll have a clean account and profile afterwards.