Encountering an issue where Windows 11 logs you out immediately after logging in can be highly frustrating. This commonly occurs due to corrupted user profiles, damaged default folders, or issues with the NTUSER.DAT file, which stores essential user configuration settings. Thankfully, several effective solutions can help you quickly resolve this issue and regain access to your Windows account.

Solution 1: Edit the Registry in Safe Mode

To correct any registry issues that may cause automatic logouts, follow these steps:

1- Enter Safe Mode:

  • On the login screen, press and hold the Shift key and select Restart.
  • After your PC restarts, choose Troubleshoot > Advanced Options.
  • Select Startup Settings and click Restart again.
  • Press 4 or F4 to boot into Safe Mode.

2- Access the Registry Editor:

  • Press Win + R, type regedit, and hit Enter.

3- Verify Registry Values:

  • Navigate to:Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  • Check entries named Shell and Userinit.
  • Shell should be set to explorer.exe.
  • Userinit should read: C:\WINDOWS\system32\userinit.exe.

4- Correct Incorrect Values:

If values differ, modify them accordingly.

5- Restart Your Computer:

After editing, restart and attempt a regular login.

Solution 2: Run System File Checker (SFC) and DISM

System file corruption can also trigger immediate logouts. Follow these steps to repair corrupted files:

1- Boot into Safe Mode again (as explained above).

  • Open Command Prompt as Administrator:
  • Click Start, type CMD, then select Run as administrator.
READ 👉  BassoonTracker: an Amiga music tracker in JavaScript to relive the origins of computer music

2- Execute the SFC Scan:

  • Type:sfc /scannow
  • Press Enter and wait for completion.

3- Perform the DISM Scan:

Type:DISM /Online /Cleanup-Image /RestoreHealth

  • Press Enter.

4- Reboot Your Computer:

After scans finish, restart your computer and attempt logging in.

Solution 3: Create a New User Account

If the problem persists, a corrupted user profile may be the culprit. Here’s how to create a new account:

  1. Enter Safe Mode (steps above).
  2. Go to Settings:
    • Navigate to Accounts > Family & other users.
  3. Add a New User Account:
    • Select Add account and follow the prompts.
  4. Log In with New Account:
    • Restart and use the new account to log in.

Conclusion

Experiencing instant logout issues on Windows 11 can disrupt productivity and create frustration. By carefully following these methods, you’ll quickly restore normal login functionality. Regularly updating Windows and performing routine maintenance can further minimize the risk of future problems.

Did you enjoy this article? Feel free to share it on social media and subscribe to our newsletter so you never miss a post!

And if you'd like to go a step further in supporting us, you can treat us to a virtual coffee ☕️. Thank you for your support ❤️!
Buy Me a Coffee

Categorized in: