Medium
Operating Systems
✓ Solution Verified by Community (0+ upvotes)
How to fix error error-bad-logon-session-state in Windows 11
ERROR_BAD_LOGON_SESSION_STATE = 1365
Fix based on community reports and expert analysis. Last verified: 2026-08-12
· How we verify fixes
| Error Code | error-bad-logon-session-state |
|---|---|
| Affected System | Windows 11 (Microsoft) |
| Difficulty | Medium |
| Estimated Time | 20 min |
| Requires Admin Rights | ⚠️ Yes |
Solution Steps
- 1 Press Win+R, type 'cmd', and press Ctrl+Shift+Enter to open Command Prompt as admin. Type 'query session' and press Enter. This lists all active sessions. Look for sessions with a state of 'Disc' (disconnected) or 'Conn' (connected) that seem stuck. Note the session IDs.
- 2 For any stuck sessions, type 'logoff [sessionID]' and press Enter. This forcefully ends the session, clearing the bad state. Be careful: this will log off any user in that session.
- 3 If the error is related to a service, open Services (Win+R, services.msc). Find the service that's failing. Right-click and select 'Restart'. This resets the service's logon session.
- 4 Check the Windows Event Log for more details: Press Win+R, type 'eventvwr.msc', and go to Windows Logs → Security. Look for logon failures with error code 1365. This will tell you which account or process is affected.
- 5 If the error persists, run a system file check: In the admin Command Prompt, type 'sfc /scannow' and press Enter. This repairs corrupted system files that might be causing the session state issue.
🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:
🔧 Still having issues?
Describe your exact problem to Error Buddy and get a personalized fix in seconds.
🛠️ Try Error Buddy — It's Free