To repair Windows 11 without losing your files, start with the DISM and SFC commands, which fix damaged system files in a few minutes. If that's not enough, go to Settings > System > Recovery and select Reinstall now: Windows reinstalls itself from Windows Update and keeps your files, apps and settings. Only if that fails too does it make sense to reset the PC, which can also keep your files but removes your apps. Here's each option, from the gentlest to the most drastic.

Which option to choose

OptionPersonal filesApps and settingsWhen to use it
DISM and SFCKeptKeptErrors, freezes or features that fail
Reinstall via Windows UpdateKeptKeptIf DISM and SFC don't fix it or Windows Update fails
In-place upgrade with USB or ISOKeptCan be keptIf the previous option doesn't appear or doesn't work
Reset this PC (Keep my files)KeptLostLast resort before a clean install

Before you start, back up anything important to an external drive, a USB stick or OneDrive. None of these options should delete your files, but if something goes wrong halfway through, you'll be glad you did. Microsoft also recommends turning on Windows Backup under Settings > Accounts.

1. Repair system files with DISM and SFC

These are two tools built into Windows: DISM repairs the system image Windows uses as a reference, and SFC checks protected files and replaces damaged ones. Microsoft recommends running them in this order:

  1. Type cmd in the taskbar search box, right-click Command Prompt and choose Run as administrator.

  2. Type this command and press Enter. It may take several minutes:

    DISM.exe /Online /Cleanup-image /Restorehealth

  3. When it finishes, type this one and press Enter:

    sfc /scannow

  4. Don't close the window until verification reaches 100%.

When it's done, SFC shows one of these messages:

  • Did not find any integrity violations: your system files are fine; the problem lies elsewhere.
  • Found corrupt files and successfully repaired them: restart the PC and check whether the problem is gone.
  • Found corrupt files but was unable to fix some of them: move on to the next option.
  • Could not perform the requested operation: try running SFC in Safe Mode.

DISM downloads what it needs from Windows Update, so you need an internet connection. If Windows Update is broken, DISM may fail; in that case, skip straight to option 3.

2. Reinstall Windows via Windows Update

This is the option Microsoft describes as the least disruptive of all its reinstall methods: it reinstalls the same version of Windows 11 you already have, repairs system files and components, and keeps your files, apps and settings.

Recovery page in Windows 11 Settings showing the Fix problems using Windows Update and Reset this PC options

  1. Open Settings > System > Recovery.
  2. Under Fix problems using Windows Update, select Reinstall now.
  3. Choose whether you want the PC to restart automatically 15 minutes after the installation finishes, and select OK.
  4. Windows takes you to the Windows Update page, downloads a repair version of the last update that installed successfully and installs it.
  5. When it's done, restart the PC if you didn't choose automatic restart.

Keep your laptop plugged in and connected to the internet throughout. According to Microsoft, a reinstall typically takes between 30 minutes and 2 hours.

If an update fails because of damaged files, the Windows Update page itself may show the message Reinstall your current version of Windows to repair system files and components, with the same button. It's common with update errors like Windows Update error 0x80070005.

If you don't see this option: it's only available on Windows 11 22H2 or later with the February 2024 optional update or a newer one installed. It also doesn't appear on PCs managed by a company or school.

3. Do an in-place upgrade with a USB drive or ISO

If the previous option doesn't appear or doesn't work, you can do the same thing by hand with the Windows 11 installer. It's called an in-place upgrade and lets you choose what to keep.

  1. Download the installer from Microsoft's website and create a USB installation drive or download the ISO. We explain how in our guide to download and install Windows 11.
  2. Connect the USB drive (or double-click the ISO to mount it) and open it from File Explorer.
  3. Run setup.exe from the root of the drive and answer Yes when Windows asks for permission.
  4. Select Change what to keep and choose Keep personal files and apps. Select Next.
  5. Select Install. The PC will restart several times.

Important: do this with Windows running and while signed in. If you boot the PC from the USB drive and install from there, you'll do a clean install, which erases the whole drive.

4. Reset the PC and keep your files

This is the last step before a clean install. Windows reinstalls from scratch and keeps your documents, photos and other personal files, but removes apps and settings, so you'll have to reinstall your apps.

  1. Go to Settings > System > Recovery and, next to Reset this PC, select Reset PC.
  2. Choose Keep my files.
  3. Choose where to reinstall Windows from:
    • Cloud download: gets a fresh copy of Windows with all updates. It's the best choice if you suspect the PC's own files are damaged.
    • Local reinstall: uses the files already on the PC. It's faster on a slow connection, but may not include the latest updates.
  4. Follow the on-screen instructions.

During the process, the screen may stay black for a long time, sometimes more than 15 minutes, and the PC may restart on its own. Don't turn it off by hand: you could make the reset fail. If your drive is encrypted with BitLocker, have the recovery key handy.

If Windows won't start at all

Everything above is done from inside Windows. If the PC won't even boot, for example after an update, you need to use the recovery environment: we walk you through it in what to do if Windows 11 won't start after an update. And if the problem started right after a specific update, uninstalling that update is often enough before you reinstall anything.