I've run into this on several computers recently. People bring me computers to work on from time to time, and often they have MS Accounts with passwords. To automate things like Windows updates, I set the computer to autologin (storing the password in the registry as follows).

@set /p password="Enter password for %USERNAME%: "
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d %USERNAME% /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d %password% /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon  /t REG_SZ /d 1 /f
Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DisableCAD" /t REG_DWORD /d 1 /f
This works really well, but from time to time when I remove these entries, I'm unable to login.

I remove the entries and restart, and the user name appears, but the "Sign In" button no longer has a border, and when I click on it, it displays "Just a moment" and the circle spins for about 10 seconds and it stays on the login screen.

If I login as the adminstrator (or any other local account) it works fine.

Odd Windows login problem-workinguser.jpg
Working user

Odd Windows login problem-non-workinguser.jpg
Non-working user

I think it's related to the PIN (there is no PIN set that I know of).

If I switch a MS Account to a local account, it works.

If I create a new local account it works, but if I switch it to a MS Account it breaks.

Any ideas would be greatly appreciated.