Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Redmond desk3 min

How to Run DISM to Repair the Windows Component Store

Use DISM RestoreHealth to scan and attempt repairs to the Windows component store, with guidance for repair sources, offline images, and failures.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To repair the component store in the Windows installation you’re currently using, open Command Prompt or PowerShell as an administrator and run DISM /Online /Cleanup-Image /RestoreHealth. DISM scans for component-store corruption and attempts repairs using an available repair source. If the command succeeds, run System File Checker when troubleshooting the Windows Update or component-store errors covered by Microsoft’s guidance.

Run DISM against the running Windows installation

  1. Open the Start menu and search for Command Prompt or PowerShell.
  2. Select Run as administrator. Approve the User Account Control prompt if it appears.
  3. Enter this command and press Enter:
    DISM /Online /Cleanup-Image /RestoreHealth
  4. Wait for DISM to finish. Microsoft says the operation takes several minutes; the actual time can vary. Do not close the window while it is running.

/Online means the target is the currently running Windows image; it does not mean DISM is downloading the repair files. /Cleanup-Image selects image cleanup and recovery operations, and /RestoreHealth scans for component-store corruption and performs repair operations automatically. See Microsoft’s Repair a Windows Image and DISM command-line options.

As an Amazon Associate I earn from qualifying purchases.

Choose the right DISM check

You can run RestoreHealth directly for the repair procedure. The other commands answer different questions; they are not additional repair steps that must always precede it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Command What it does
DISM /Online /Cleanup-Image /CheckHealth Checks whether corruption has already been recorded and whether the image is considered repairable. It is a quick status check, not a full scan.
DISM /Online /Cleanup-Image /ScanHealth Scans the component store for corruption; the scan can take several minutes.
DISM /Online /Cleanup-Image /RestoreHealth Scans for component-store corruption and attempts repair automatically.

These command descriptions are documented by Microsoft in its DISM servicing options.

#1 Best Overall
Password Reset Disk for Windows 7, 8.1, 10, 11, Windows Password Recovery USB, Password Reset Tool
  • FOR FULL INSTRUCTION PLEASE READ DESCRIPTION
  • Step 1: Boot from the USB Flash Drive - Insert the USB flash drive into an available USB port on your computer. - Turn on your computer or restart it if it’s already on. - As the computer starts, press the key that opens the boot menu. This key varies by manufacturer and model, but it’s often F2, F10, Esc, or Delete. - In the BIOS/UEFI setup menu, locate the Boot Options or Boot Order section. - Use the arrow keys to select your USB drive and move it to the top of the boot priority list. - Save your changes and exit the BIOS/UEFI setup. Your computer will now boot from the USB flash drive.
  • After that its will take few minutes to reset Windows login password
  • Package includes instruction how to use "Password reset USB" software

Understand where DISM gets repair files

When you omit /Source, DISM uses the configured repair source; Windows Update may be used for an online repair. On a managed computer, policy may specify a repair source, so behavior can differ from a personal PC. Microsoft explains source configuration in Configure a Windows Repair Source.

Use a mounted Windows image as a local source

If you have a suitable Windows image mounted and its Windows directory is available, specify that directory as the source. Microsoft’s example is:

DISM /Online /Cleanup-Image /RestoreHealth /Source:C:testmountwindows /LimitAccess

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Replace C:testmountwindows with the actual Windows directory in your mounted image. The source must be suitable for repairing the target installation; a USB drive by itself is not a repair source. In this example, /LimitAccess prevents DISM from contacting Windows Update, so use it only when the specified source or a configured policy source is intended to provide the needed files.

When you specify multiple /Source locations, DISM uses files from the first location where they are found and ignores later locations. Refer to Microsoft’s repair guidance and Repair-WindowsImage reference for source and parameter details.

Repair an offline Windows image instead

If the Windows installation you need to repair is offline but accessible, target its image path with /Image: rather than using /Online. Microsoft’s example syntax is:

Rank #2
Lexar A30E USB 3.2 Gen 1 Flash Drive 128GB 2-Pack
  • Lightweight and convenient: Lexar JumpDrive A30E (USB Type-A) boasts a slim, portable design for easy device compatibility; lightweight at 7.41 g
  • Transfer speeds up to 100 MB/s: 10x faster than standard USB 2.0 drives; Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions
  • Wide compatibility: Compatible with tablets, laptops, Macs, and traditional Type-A devices, no software installation required; Reliably stores photos, videos & files
  • Compact: Features a push-button retractor and a lanyard loop for on-the-go use
  • Enhanced security: Lexar DataShield protects files, easily creates a password-protected safe with auto-encryption; Files deleted from the safe are securely erased and can't be recovered

DISM /Image:C:offline /Cleanup-Image /RestoreHealth /Source:C:testmountwindows

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Replace C:offline with the offline Windows image path and the source path with a suitable known-good mounted Windows directory. Do not use the running-system command unchanged when the intended target is an offline image. Microsoft documents this distinction in Repair a Windows Image.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to do after DISM finishes

For the component-store and Windows Update errors addressed in Microsoft’s troubleshooting guidance, run System File Checker after DISM:

sfc /scannow

Open Command Prompt or PowerShell as an administrator for this command as well. Microsoft recommends the DISM-then-SFC sequence for those cases in Fix Windows Update corruptions and installation failures.

If RestoreHealth fails

A failed or incomplete RestoreHealth run does not establish that the component store was repaired. Check %windir%LogsCBSCBS.log for servicing errors to investigate why the operation did not complete. If the log points to missing source files, verify that your specified source is suitable and reachable, and check whether a repair-source policy applies on a managed device. Microsoft’s repair guidance says a non-repairable image in an image-servicing context should be discarded and recreated; that is not a blanket instruction to delete or replace a personal Windows installation.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Password Reset Disk for Windows 7, 8.1, 10, 11, Windows Password Recovery USB, Password Reset Tool
Password Reset Disk for Windows 7, 8.1, 10, 11, Windows Password Recovery USB, Password Reset Tool
FOR FULL INSTRUCTION PLEASE READ DESCRIPTION; After that its will take few minutes to reset Windows login password
$21.90
Bestseller No. 2
Lexar A30E USB 3.2 Gen 1 Flash Drive 128GB 2-Pack
Lexar A30E USB 3.2 Gen 1 Flash Drive 128GB 2-Pack
Compact: Features a push-button retractor and a lanyard loop for on-the-go use
$39.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.