Sign-in · Windows 11
Fix a sign-in screen that flashes and returns you to the lock screen
You enter your PIN or password, the screen flashes, and you are back at the lock screen — your password is usually fine, but your profile or a sign-in service is failing the moment the desktop tries to load. Test with Safe Mode first to separate a broken profile from a broken service, then repair the one that fails.
What you need
- Your account password, not just the PIN. Safe Mode and the recovery screens ask for the full password, and a Microsoft account password is the one set online.
- A second account if the PC has one. Whether another account signs in normally is the cheapest diagnostic on this page.
- Your files backed up if you can still reach them. Profile repairs are safer when your documents already exist somewhere else.
Read the problem before you touch it
- Notice that the credential was accepted. A wrong password gets an error message and a fresh prompt. A flash back to the lock screen with no error means Windows accepted you, started loading your profile, and something in that load failed hard enough to sign you straight back out.
- Try the other account, or the other sign-in method. If a second account reaches its desktop, your profile is the problem. If every account bounces, a service or system file is. Switching between PIN and password on your own account rules out a broken PIN on its own.
- Remember what changed just before. This loop often starts right after an update, a forced shutdown during sign-in, or a disk filling completely. That timing decides whether you start with services, free space, or profile repair below.
The simple fixes, in order
- Restart once, fully. Choose Restart from the power menu on the sign-in screen rather than Shut down, which can resume the same broken state with fast startup. Try signing in once more before anything deeper.
- Sign in with Safe Mode. Hold Shift while choosing Restart on the sign-in screen, then go to Troubleshoot > Advanced options > Startup Settings > Restart and choose Safe Mode. Microsoft describes this recovery environment in Windows Recovery Environment (Windows RE) technical reference. If Safe Mode reaches your desktop, a startup app or service is breaking normal sign-in.
- From Safe Mode, clear the obvious blockers. Check the system drive is not completely full — a profile cannot load with zero free space — and uninstall or disable the last app or driver added before the loop started. Restart normally and test.
- Check the profile and sign-in services are not disabled. Still in Safe Mode, open Services and confirm User Profile Service and Microsoft Account Sign-in Assistant are not set to Disabled; set them to Manual or Automatic as offered, then restart and test again.
The advanced route
- Repair system files from Safe Mode. Back in Safe Mode, open Windows Terminal as administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, then runsfc /scannow. Run both from inside the Safe Mode session rather than the recovery Command Prompt — the/Onlineform repairs the Windows session you are running. Microsoft documents both tools in Using System File Checker in Windows. - Create a fresh account and move your files if the profile is damaged. In Safe Mode, add a new local administrator account, sign in to it normally, and confirm it stays on its desktop. Then copy your documents, pictures, and other files out of the old profile folder into the new one. A profile that bounces only its own owner is not worth deeper surgery.
- Use System Restore from the recovery options. If the loop began after a specific change and a restore point from before it exists, run System Restore from Advanced options. It rolls back system files and settings without touching your personal files.
End state
- Your normal sign-in reaches your desktop and stays there.
- Your files, apps, and settings are present in the account you now use.
- A restart followed by sign-in works twice in a row, not just once.
When it goes wrong
- Safe Mode bounces back to the lock screen too. The fault sits below startup apps — system files or the profile service itself. Work from the recovery Command Prompt and System Restore in the advanced steps rather than repeated sign-in attempts.
- The new account works but your files are missing from the old folder. Look in the old profile's folders directly rather than through libraries, and check for a renamed profile folder. Copy files out before deleting anything.
- The loop returns days later. Whatever damaged the profile is still active — a failing drive and a disk that keeps filling are the usual repeat causes. Fix that root cause, or the new profile will eventually bounce too.
Related fixes
-
Fix a Windows sign-in that sits for minutes on the welcome screen
A sign-in that sits on the welcome screen for minutes is usually a startup app, a stuck profile, or fast startup replaying a bad state. Test in Safe Mode, turn off fast startup, and try a fresh profile to find the cause.
-
Fix a PC stuck on the 'Please wait' screen before sign-in
A PC stuck on 'Please wait' is waiting on a service or a piece of update cleanup that is not finishing. Give it one bounded wait first, then use Safe Mode through the recovery environment to stop the stuck piece and let sign-in complete.
-
Fix a black screen after login in Windows
You sign in, then the desktop never appears and the screen stays black. Tell apart the cursor and no-cursor cases, test Safe Mode, then repair the system files in order.
-
Fix a PC that boots to a black screen with only a cursor
Wake the display, split the fault at sign-in, roll back the graphics driver in Safe Mode, and restart the desktop shell.
Sources
- Microsoft Learn, Windows Recovery Environment (Windows RE) technical reference — the recovery environment behind the Shift + Restart route to Safe Mode and advanced options.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair missing or corrupted system files.