If you delete a user from the Control Panel in Windows 11, sometimes the user will remain on the login screen when turning the PC on.
To solve it:
regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
DefaultUserName
and LastUsedUsername
fields from the Windows RegistryHi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.