The three DISM commands you should know to fix your Windows system images

Check and repair damaged system files with these DISM commands.

Your Windows installation depends on a collection of important system files to run applications, install updates and perform everyday computing tasks. If these files get damaged or go missing, your system may behave erratically. You may encounter system errors, features not working as expected, freezes or other unexpected behavior. Sometimes restarting your computer or running the usual troubleshooting steps aren’t enough to restore damaged system files. For such cases, Windows provides a built-in repair utility called Deployment Image Servicing and Management (DISM).

DISM is a command line tool that can scan Windows system images for corrupt system files and attempt repairs. Particularly, there are three useful DISM commands that achieve this purpose: CheckHealth, ScanHealth and RestoreHealth. You can run DISM commands in either the command prompt or the PowerShell, but both CLIs require administrator privileges to make system-level changes. It’s worth noting that DISM exclusively scans and repairs system files; your personal files remain untouched.

Three DISM commands that fix damaged Windows installation

All three DISM commands in question follow a specific syntax that begins with DISM /Online /Cleanup-Image. The parts following “DISM” in the syntax are called command-line options. The /Online CLI option specifies DISM to take action on the currently running Windows installation, while /Cleanup-Image performs recovery operations on the selected installation.

The first command is DISM /Online /Cleanup-Image /CheckHealth. It checks whether Windows has already flagged corrupt system files and whether the corruption is repairable. This is the first recommended step when investigating corrupt system files as it takes very little time to complete.

The next command is DISM /Online /Cleanup-Image /ScanHealth and it works slightly differently from the CheckHealth command. Unlike CheckHealth, the ScanHealth DISM command performs a fresh scan of your system files and reports any its findings. The ScanHealth operation may take several minutes to complete, but it provides you with a fresh report on the component store’s health.

Finally, the DISM /Online /Cleanup-Image /RestoreHealth command both scans the component store for corruption and attempts to repair them automatically. By default, RestoreHealth uses Windows Update to obtain the necessary system files needed to repair the component store. The Windows component store is a protected internal repository that contains important system files. Windows requires these files to service, update and customize the operating system.

What to do if DISM fails to repair your Windows installation?

Sometimes system file damage can also break Windows Update, preventing DISM from downloading replacement files. When this happens, you can use an official Windows installation media to supply DISM with the necessary repair files. You can download a Windows ISO from Microsoft’s official download page. Once downloaded, right click the ISO file and select mount. Windows will create a virtual drive for the ISO, assign it a drive letter and make its contents available.

Next, you’ll need to check the Windows editions available in the downloaded installation media. You can do that by launching the command prompt as an administrator and running the DISM /Get-ImageInfo /ImageFile:D:sourcesinstall.wim command. This command lists the Windows editions available on the installation media along with their index numbers. Make a note of the index number corresponding to your installed edition before proceeding to the next step.

Now, run the DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:sourcesinstall.wim:6 /LimitAccess command. Replace D: with the drive letter assigned to the mounted Windows ISO and 6 with the index number corresponding to your Windows edition. This directs DISM to use the installation media as its repair source instead of downloading files from Windows Update.

Once DISM completes its operation, run the sfc /scannow command to repair damaged or missing system files. Microsoft recommends running the DISM repair utility before System File Checker (SFC) because DISM repairs the Windows component store, which SFC relies on to replace corrupted system files.

Don’t miss these tips!

We don’t spam! Read more in our privacy policy

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Hot this week

Zsela Invites You to The Party With New Album

CommentLoaderSave StorySave this storyCommentLoaderSave StorySave this storyZsela is getting...

Oura Ring Adds a Jet Lag Feature for Time Zone Travelers

Traveling to new places is good for the soul,...

Over a Third of Gen Z-ers Rely on AI for Friendship

As generational cohorts go, Gen Z has been saddled...

ART X Lagos 2026 Art Across Borders: Redefining Value

Exploring human anatomy through sustainable materials: Ghizlane Sahli’s Histoires...

Topics

Zsela Invites You to The Party With New Album

CommentLoaderSave StorySave this storyCommentLoaderSave StorySave this storyZsela is getting...

Oura Ring Adds a Jet Lag Feature for Time Zone Travelers

Traveling to new places is good for the soul,...

ART X Lagos 2026 Art Across Borders: Redefining Value

Exploring human anatomy through sustainable materials: Ghizlane Sahli’s Histoires...

Over a Third of Gen Z-ers Rely on AI for Friendship

As generational cohorts go, Gen Z has been saddled...

Featured Artist | Darrell Black

Darrell Black Frankfurt, Germanyhttp://darrell-black.pixels.com/@definismart My Darrell Urban Black, an American visual...

Related Articles

Popular Categories

News Feed

Apple confirms Ted Lasso will return for Season 5

The mustachioed coach will be back on the pitch...

Billy Ray Cyrus Shares Snapshots From Miley’s Wedding: ‘Beautiful’ to See Family ‘United by Love’

'Today and Forever' Miley Cyrus and Maxx Morando tied the knot over the weekend at a ceremony in Palm Springs Billy Ray Cyrus shared photos...

Brentford routs 10-man Everton in Premier League to spoil David Moyes’ record-breaking night

Keane Lewis-Potter’s double had put Brentford in full control even before Everton captain James Tarkowski was sent off shortly before the halftime. Goals from...

Bully Ray is furious with WWE over ending of recent high-profile match

Bully Ray has made it clear that he wasn't the biggest fan of a recent WWE match ending.

“We have a clown coach” “Does he ever take responsibility?”: NFL fans blast Mike Vrabel for his comments about AJ Brown’s degenerative knee

Mike Vrabel was asked on “The Greg Hill Show” about a Nashville report that Tennessee Titans doctors told team leadership in 2022 that A.J....

Dodgers wives send sweet wishes to Freddie Freeman’s wife Chelsea as the couple celebrate major relationship milestone

Los Angeles Dodgers first baseman Freddie Freeman and his wife Chelsea Freeman marked their 12th wedding anniversary on November 22.

“Troy Aikman is trying to get fired,” “He’s gone after this season”: NFL fans react to ESPN analyst’s comments on MNF broadcast

Troy Aikman's tribute to Tom Jackson was meant to explain why “NFL Primetime” mattered to a generation of players. It also left fans wondering...

Woody Harrelson Turned Down Haymitch Offer Twice: I Didn’t ‘Think There Was Enough to Do’ in ‘The Hunger Games’

While a certain generation might associate Woody Harrelson most with his role as Haymitch Abernathy in the billion-dollar “Hunger Games” franchise, the actor has...

PICTURES: Amanda Anisimova poses in blue bikini during family vacation in Turks and Caicos Islands

Amanda Anisimova has offered her followers a window into her off-season.

Syed Modi International 2026: Full schedule, Indians in action, prize money, and all you need to know

Here’s everything you need to know about the Syed Modi International 2026 event starting in Lucknow on Tuesday, November 24.

Female star makes stunning accusation against WWE; exposes false promise made before release

A former WWE star has made a serious revelation about being offered false promises by the global juggernaut about having something concrete in store...

Interactive Films ‘The Run,’ ‘Kaiju Princess,’ ‘Back From the Other World’ Hit Taiwan Cinemas as Audiences Vote on Endings by Smartphone (EXCLUSIVE)

Moviegoers in Taiwan will be able to steer the outcome of three feature films with their phones, as interactive cinema outfit Next Interactive Studio...

Popular articles

Apple confirms Ted Lasso will return for Season 5

The mustachioed coach will be back on the pitch...

Billy Ray Cyrus Shares Snapshots From Miley’s Wedding: ‘Beautiful’ to See Family ‘United by Love’

'Today and Forever' Miley Cyrus and Maxx Morando tied the knot over the weekend at a ceremony in Palm Springs Billy Ray Cyrus shared photos...

Brentford routs 10-man Everton in Premier League to spoil David Moyes’ record-breaking night

Keane Lewis-Potter’s double had put Brentford in full control even before Everton captain James Tarkowski was sent off shortly before the halftime. Goals from...

Bully Ray is furious with WWE over ending of recent high-profile match

Bully Ray has made it clear that he wasn't the biggest fan of a recent WWE match ending.

“We have a clown coach” “Does he ever take responsibility?”: NFL fans blast Mike Vrabel for his comments about AJ Brown’s degenerative knee

Mike Vrabel was asked on “The Greg Hill Show” about a Nashville report that Tennessee Titans doctors told team leadership in 2022 that A.J....

Dodgers wives send sweet wishes to Freddie Freeman’s wife Chelsea as the couple celebrate major relationship milestone

Los Angeles Dodgers first baseman Freddie Freeman and his wife Chelsea Freeman marked their 12th wedding anniversary on November 22.

“Troy Aikman is trying to get fired,” “He’s gone after this season”: NFL fans react to ESPN analyst’s comments on MNF broadcast

Troy Aikman's tribute to Tom Jackson was meant to explain why “NFL Primetime” mattered to a generation of players. It also left fans wondering...

Woody Harrelson Turned Down Haymitch Offer Twice: I Didn’t ‘Think There Was Enough to Do’ in ‘The Hunger Games’

While a certain generation might associate Woody Harrelson most with his role as Haymitch Abernathy in the billion-dollar “Hunger Games” franchise, the actor has...

PICTURES: Amanda Anisimova poses in blue bikini during family vacation in Turks and Caicos Islands

Amanda Anisimova has offered her followers a window into her off-season.

Syed Modi International 2026: Full schedule, Indians in action, prize money, and all you need to know

Here’s everything you need to know about the Syed Modi International 2026 event starting in Lucknow on Tuesday, November 24.

Female star makes stunning accusation against WWE; exposes false promise made before release

A former WWE star has made a serious revelation about being offered false promises by the global juggernaut about having something concrete in store...

Interactive Films ‘The Run,’ ‘Kaiju Princess,’ ‘Back From the Other World’ Hit Taiwan Cinemas as Audiences Vote on Endings by Smartphone (EXCLUSIVE)

Moviegoers in Taiwan will be able to steer the outcome of three feature films with their phones, as interactive cinema outfit Next Interactive Studio...