0

Currently when I start my Windows 10 desktop I get a failed auto-login (Incorrect user name or password...) - this is because it is trying to use an incorrect username. I can then login by entering the correct details, or by switching to using PIN.

When I try to use netplwiz to change my account user name I get "The user name for <User> could not be changed"

I have tried creating another Administrator, logging in as that user and then trying to update the user name for the main account but I get the same error.

I have "Require Windows Hello sign-in for Microsoft accounts" disabled, and "Require Sign-in" disabled in "Sign-In Options"

I have "Users must enter a user name and password to use this computer" disabled in netplwiz

I have never updated my username previously, and did not consciously ever set the username to the incorrect value (the incorrect username is a truncated version of the real <name>@outlook.com one). The machine was recently re-built and no other accounts have ever been used on it apart from the two described here.

How can I correct my username?

3
  • The simplest way to change your username, is to disconnect your Microsoft Account, and when prompted provided a different username. Had you ever attempted to use any other method to change the name of your username in the past? Why are you attempting to use the incorrect username to log into your account? You can edit your question
    – Ramhound
    Commented Mar 8, 2021 at 15:31
  • Hi @Ramhound - I have updated my question. Commented Mar 8, 2021 at 15:39
  • "the incorrect username is a truncated version of the real <name>@outlook.com one" - If you temporarily disconnect your account from your Microsoft Account, provide a profile name (i.e. Ingmar), then reconnect your Microsoft you will probably solve your problem.
    – Ramhound
    Commented Mar 8, 2021 at 15:42

1 Answer 1

1

When using Netplwiz, all it does is make registry changes. Since all you want to do is alter the login information, the easiest method here is to edit the registry directly.

You will want to navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Alter the settings for DefaultUsername and DefaultPassword according to your new settings.

If these contain anything invalid, such as a typo, you will get a logon screen upon subsequent boots until the right information is stored.

See also: external documentation

That said, if you have chosen to convert your local user to a microsoft account (for example, you clicked yes when got this question asked in the Windows Store) your username does change, so either set your username to the email address of your microsoft account or go into settings, accounts and convert your microsoft account back into a local account. When converting back, chances are high that you don't have to make any registry changes etc, and it will work like normal again.

2
  • These entries did not exist - added them, restarted, went back to netplwiz. This time when re-setting "Users must enter a user name and password to use this computer" to disabled I was prompted to enter details for login" (which it has not done before). Fixed! Thank you. Commented Mar 8, 2021 at 15:51
  • You're welcome. :)
    – LPChip
    Commented Mar 8, 2021 at 17:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .