How to repair a Windows 11 image using DISM Command Tool — Scan health and restore in 5 easy steps

How to use DISM to repair Windows 11
(Image credit: Future)

The “Deployment Image Servicing and Management” tool (DISM) is a helpful, but advanced tool to scan, alter, and repair any Windows 11 system issues. A lot of OS problems such as poor performance, boot-up issues or specific crashes can come down to a corrupted system file, and this Command Tool implementation is capable of fixing them.

Now, I know a lot of you probably saw me use the phrase “Command Tool” and freaked out a little. In all honesty, I did too at first, but breathe — this is a lot easier than you might think. All it takes is copying and pasting the commands below and you’re off to the races.

How to check the file system

Before you run the DISM repair, it's important that you run a disk check to spot and repair any issues in the file system. Not doing this will render the follow up DISM and SFC repairs useless. As forum user ericpeacock79 pointed out, "the file corruption will just return."

1. Open Command Prompt as administrator

(Image: © Future)

Hit the Start button and search for Command Prompt. Right-click it, and select Run as administrator. You will need to do this for all the DISM and SFC processes you see below.

1. Setup the chkdsk

(Image: © Future)

Open Command Prompt as administrator, enter the following prompt "chkdsk c: /f /r" and press Enter. You will then see a prompt to run this disk check on restart, type Y and press Enter again. From this point, when you restart the computer, it will perform the check.

3. Let the check happen uninterrupted

(Image: © Future)

The startup process will give you an option to skip the disk check if you need to get to Windows quickly. If you don't need to open fast, do not interrupt the disk check and leave it to do its thing. This is important, as any sort of interruption could irreparably corrupt the whole file system.

How to fix Windows 11 Image problems with DISM

The DISM tool is perfect for scanning all the system files for any corrupted/missing data, and fixing them. If you’re having OS setup troubles, that’s where SFC comes into play.

1. Check the system health

(Image: © Future)

Enter the following prompt: “DISM /Online /Cleanup-Image /CheckHealth” and press Enter. This will command the DISM tool to do a quick sweep of the system and verify any corrupted data.

2. Need a more in depth scan?

(Image: © Future)

This is where ScanHealth comes in. Use “DISM /Online /Cleanup-Image /ScanHealth” and hit Enter again. This will take some time, but will identify the specific file corruptions.

3. Time to fix it!

(Image: © Future)

Now that you’ve found the corrupted data, it’s time to fix it. Type in “DISM /Online /Cleanup-Image /RestoreHealth” and press Enter. Just like ScanHealth, this will take some time, and it may look like it’s frozen when you see the % progress bar stop for a while. But trust the system — it’s downloading and replacing the corrupted files you find.

How to run a full system file check in Windows 11

If your issues are more about the setup of Windows itself, or if you want to double check that DISM did the trick, that’s where the System File Checker (SFC) comes in.

1. Run the scan

(Image: © Future)

That’s it! Same as above, run Command Prompt as administrator, then use the prompt “SFC /scannow” and press Enter. This will do a sweep of everything and repair any system files using your (now fixed) local image files. Make sure that if any errors are found, you run it a couple more times. SFC /scannow has a bit of a reputation for not fixing much the first time around.


Check out our other Windows 11 guides, including how to get Microsoft PowerToys, how to enable God Mode in Windows and how to record your screen in Windows.

More from Tom's Guide

Category
Arrow
Arrow
Back to MacBook Air
Brand
Arrow
Processor
Arrow
RAM
Arrow
Storage Size
Arrow
Screen Size
Arrow
Colour
Arrow
Storage Type
Arrow
Condition
Arrow
Price
Arrow
Any Price
Showing 10 of 37 deals
Filters
Arrow
Show more
TOPICS
Jason England
Managing Editor — Computing

Jason brings a decade of tech and gaming journalism experience to his role as a Managing Editor of Computing at Tom's Guide. He has previously written for Laptop Mag, Tom's Hardware, Kotaku, Stuff and BBC Science Focus. In his spare time, you'll find Jason looking for good dogs to pet or thinking about eating pizza if he isn't already.

Read more
Windows 11 logo on a laptop screen
I reviewed Windows 11, and these are the 5 new features I'm most excited about for 2025
laptop anger
Latest Windows 11 update reportedly breaking major parts of the operating system
A Windows 11 laptop, demonstrating how to use Windows 11 Voice Access
How to use Windows 11 Voice Access: Tell your PC what to do
A Windows 11 laptop, demonstrating how to run Android apps on Windows 11
How to remove the Windows 11 news and weather widget
New Windows Search feature example on Windows 11
Microsoft is bringing big upgrades to Windows Search for Copilot+ PCs — here's what we know
The Windows Rec
How to enable Windows Recall — it's now possible to try the controversial Copilot feature
Latest in Windows Operating Systems
Microsoft Office is finally as it should have been on iPad
Microsoft tests free Word, PowerPoint and Excel apps for Windows — expect a lot of ads
laptop anger
Latest Windows 11 update reportedly breaking major parts of the operating system
Windows 10 logo
Windows 10 end of life set for this year — everything you need to know to get ready
Windows 11 logo on a laptop screen
I reviewed Windows 11, and these are the 5 new features I'm most excited about for 2025
A Windows 11 laptop, demonstrating how to run Android apps on Windows 11
How to remove the Windows 11 news and weather widget
Man typing on Windows 11 laptop
Microsoft confirms major Windows 11 and Windows 10 audio bug is cutting sound on PCs
Latest in How To
What size air purifier do you need? We ask the experts
ChatGPT on iPhone
5 mind-blowing ChatGPT prompts you’ll wish you knew sooner
Bulbs on a planting table
7 bulbs to plant in March for the best summer blooms
iRobot Roomba Combo 10 Max on hardwood floor
Don’t let your Roomba overflow — here's how to empty it
Cleaning bathroom taps
A professional cleaner just revealed the most obvious bathroom cleaning hack, and I'm shocked I never thought of it
Roomba i3
How to clean your Roomba for peak performance — 5 easy steps
  • ericpeacock79
    Great article, I'm glad to see someone finally spell those two things out together. However there are a couple of things missing:

    Before doing the DISM repair, first run chkdsk c: /f /r
    in admin command prompt. Reboot to let the chkdsk run and repair the file system first. If file system errors are not first corrected, then dism repair and sfc are useless because the file corruption will just return.
    Note: chkdsk must NOT be interrupted. If it is not allowed to complete, it could hose the whole file system.

    Do the steps in the order listed:
    1) chkdsk c: /f /r
    2) dism online repair
    3) sfc /scannow

    Doing the steps out of order also is useless.
    Reply
  • mrjasonengland
    Great point Eric - thanks for pointing this out! I've updated the how-to with these steps.
    Reply