“Your session was logged off because DWM crashed” in Windows 11

Published by Serena Lee - Updated on

If you’re seeing “Your session was logged off because DWM crashed” (or the newer “You have been logged out because the Desktop Window Manager has crashed“) on Windows 11 or 10, often after the screen flickers or goes black and nothing responds, Windows has just ended your session because the part that draws your desktop stopped working. This guide will explain what usually breaks it and how to get your desktop back, even when the message appears every time you sign in.

Also see: Windows 11 White or Black Screen with Cursor (Fix)

"Your session was logged off because DWM crashed" in Windows 11

Why does the Desktop Window Manager crash and log you out?

Desktop Window Manager (dwm.exe) puts together everything you see on the screen: every app draws its window into memory on the graphics card, and DWM combines them into the final picture. Without it there’s no desktop to show, so when it crashes, Windows ends your session.

Your session was logged off because DWM crashed Windows 11

Because DWM works so closely with the graphics card, the graphics driver is the most common suspect. Apps that change how Windows looks (rounded corner removers, blur tools, taskbar restylers), overlays, damaged system files and a Windows update that didn’t install properly can cause it too. On desktop PCs, a graphics card not seated firmly in its slot has caused the same crashes, and in one case the drive itself was failing.

For some people it happens once in a while, sometimes after the resolution suddenly drops or everything looks bigger. For others it comes back at every sign-in, so they can’t reach the desktop at all.

The message tells you to check the event log. If you can reach the desktop, press Win + R, type eventvwr.msc and go to Windows Logs > Application. An “Application Error” for dwm.exe (Event ID 1000) at the time you were signed out confirms it was DWM.

Get into Safe Mode first (if it signs you out every time)

Safe Mode starts Windows with only basic drivers, so DWM usually stays up long enough to fix things. If plain Safe Mode still crashes, try Safe Mode with Command Prompt, which can work when the other doesn’t.

  1. On the sign-in screen, hold down Shift while you select the Power icon > Restart.Restart from Windows 11 sign-in screen power icon
    • If Windows signs you out too quickly or won’t load at all, hold the power button to turn the PC off while Windows is starting, twice in a row. On the third start, it opens the recovery screen by itself.
  2. Select Troubleshoot > Advanced options.Troubleshoot Advanced Options
  3. Select Startup Settings, then Restart.Startup Settings Safe Mode Windows 11
  4. After the restart, press 4 or F4 for Safe Mode, 5 or F5 for Safe Mode with Networking (to download a driver), or 6 or F6 for Safe Mode with Command Prompt.Startup Settings Enable Safe Mode list

Then work through the fixes below from Safe Mode.

Related guide: Enter Safe Mode in Windows 11/10 when PC isn’t booting

Run DISM and SFC

If one of the Windows files DWM depends on is damaged, it can crash over and over. DISM repairs the Windows image those files come from, and SFC then replaces any damaged system file.

  1. Open Command Prompt as administrator.
    • In Safe Mode, search for “cmd” in Start, right-click Command Prompt and select Run as administrator.
    • In Safe Mode with Command Prompt, the window is already open.
  2. Type the following commands one by one, and press Enter after each:
    DISM /Online /Cleanup-Image /RestoreHealth
    sfc /scannow

    Run DISM Windows 11SFC scannow successful repair Windows 11

  3. Wait for both to finish, then restart normally.

Sign in again and see if you stay signed in.

Reinstall the graphics driver

Removing the graphics driver makes Windows fall back to its basic display driver, which gives you a stable desktop to install a clean copy from.

If the crashes started right after a driver update, roll it back first: in Device Manager, right-click your graphics card, select Properties, open the Driver tab and click Roll Back Driver. If that stops the crashes, skip the steps below.

  1. Right-click the Start button and select Device Manager.
  2. Expand Display adapters, right-click your graphics card and select Uninstall device.
  3. Check “Attempt to remove the driver for this device“, then click Uninstall.Uninstall display adapter driver Device Manager Windows 11
  4. Restart your PC.
  5. Install the latest driver from your PC or laptop maker’s support page, or from NVIDIA, AMD or Intel.

Sign in normally and see if the crashes stop.

Uninstall apps that change how Windows looks

Apps that tweak the look of Windows hook into how windows are drawn, and a bad one can make DWM crash at every sign-in. Overlays can too, such as the ones in Discord, Steam, Xbox Game Bar, MSI Afterburner (RivaTuner) and ReShade.

Remove any you installed shortly before the crashes began. Go to Settings > Apps > Installed apps, click the three dots next to the app and select Uninstall.

Uninstall app Settings Installed apps Windows 11

If the app changed Windows’ own files, run DISM and SFC again afterwards.

Uninstall the latest update or restore your PC

When the message started right after a Windows update, especially one that failed, undoing that update can let you sign in again. These options work from the recovery screen, even when you can’t sign in.

  1. Open the recovery screen as in the Safe Mode section, and select Troubleshoot > Advanced options.
  2. Try Startup Repair first. If it doesn’t help, select Uninstall Updates and remove the latest update, or System Restore and pick a restore point from before the crashes began.Uninstall Updates System Restore Advanced options Windows 11

System Restore keeps your personal files, but apps, drivers and updates installed after the restore point are removed.

Learn more: How to System Restore Windows 11/10 to a Previous Date

Reseat the graphics card (desktop PCs)

If the crashes keep coming at random on a desktop PC, often with a black screen, the graphics card may not be making good contact. Taking the card out and putting it back in has stopped DWM crashing for several people. In one case, it was a loose pin in the card’s power connector.

  1. Shut down the PC and unplug the power cable.
  2. Unplug the power cables from the graphics card, take the card out of its slot, then push it back in firmly.
  3. Plug the power cables back in all the way, and check the display cable at both ends.

Graphics card in PCIe slot desktop PC

If the PC is still under warranty or you’re not sure what you’re doing, let a technician do it.

Reset Windows as a last resort

If nothing above helps, resetting Windows gives you a clean system. Copy your important files to a USB drive first, from Safe Mode, or by connecting the drive to another computer.

  1. Open the recovery screen and select Troubleshoot > Reset this PC.Reset this PC Windows 11
  2. Choose Keep my files and follow the prompts.

If even a reset keeps failing, have the drive checked, since a failing drive has caused the same sign-out.


Serena Lee
Serena Lee is a writer and editor at WindowsDigitals.com. She holds a Bachelor of Science in Information Technology and is a long-time Windows user. Serena is also a gamer who loves building and modding her own PCs, from picking the parts to fine-tuning the settings. When something goes wrong with a PC, she is good at finding out why and fixing it.