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.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

DISM and SFC repair different layers of Windows. DISM repairs the Windows component store, which provides replacement files. SFC then checks protected system files and replaces damaged copies using that repaired store.

For a working installation, run DISM first and SFC second. If Windows will not boot, run their offline forms from Windows Recovery Environment (WinRE). The commands below cover Windows 10 and Windows 11, including repairs that need a matching ISO, USB drive, or network source.

Before you start

  1. Save open work and connect the PC to AC power.
  2. If Windows still starts, install pending updates and restart once.
  3. Back up important files if the system is unstable or the disk may be failing.
  4. Check the installed version with winver. This matters when you need installation media as a repair source.

Open an elevated Command Prompt:

  1. Select Start and type cmd.
  2. Right-click Command Prompt and choose Run as administrator.
  3. Approve the User Account Control prompt.

You can also confirm the installed edition with:

dism /online /Get-CurrentEdition

In DISM, /Online means “the Windows installation currently running.” It does not mean that DISM automatically uses the internet, although Windows Update may be used as a repair source.

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

Standard online repair: DISM, then SFC

Use these commands when you can sign in to Windows normally or in Safe Mode. Run each command in the elevated Command Prompt and wait for it to finish before entering the next one.

#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

1. Check the component store

A quick check shows whether Windows has already marked the component store as corrupted:

DISM.exe /Online /Cleanup-Image /CheckHealth

For a more thorough scan, use:

DISM.exe /Online /Cleanup-Image /ScanHealth

/CheckHealth is relatively quick. /ScanHealth examines the store for corruption and can take several minutes. Neither command repairs anything.

2. Repair Windows with DISM

DISM.exe /Online /Cleanup-Image /RestoreHealth

For an online image, DISM normally obtains missing repair files through Windows Update. Keep the PC connected to the internet unless you are supplying a local source. A progress percentage can remain unchanged for quite a while; do not close the window just because it appears stuck.

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

Wait for a message similar to:

The restore operation completed successfully.

3. Run System File Checker

After DISM completes successfully, run:

sfc /scannow

Leave the Command Prompt open until verification reaches 100%. Restart Windows when SFC finishes, even if it repaired only a small number of files.

What SFC’s result means

Result Meaning Next step
Windows Resource Protection did not find any integrity violations. SFC found no corruption in protected system files. Restart and test the original problem.
Windows Resource Protection found corrupt files and successfully repaired them. SFC replaced the damaged files. Restart Windows and check whether the problem is resolved.
Windows Resource Protection found corrupt files but was unable to fix some of them. Some files could not be replaced. Review the SFC details and confirm that DISM completed successfully. If necessary, use a matching local source or offline repair.
Windows Resource Protection could not perform the requested operation. SFC could not complete its scan. Try Safe Mode, or run SFC offline from WinRE.

To extract SFC entries from the CBS log on a running installation, use:

findstr /c:"[SR]" %windir%LogsCBSCBS.log >"%userprofile%Desktopsfcdetails.txt"

The CBS log can contain results from several scans. Check timestamps before deciding that an entry belongs to the latest run.

Repair DISM with a local Windows source

Use a local source when DISM returns 0x800f081f: The source files could not be found, Windows Update is unavailable, the PC has no internet connection, or company policy blocks access to Windows Update.

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

A directory containing known-good Windows files can be specified like this:

Rank #2
YOTUO 500GB External Hard Drive, Portable Storage Expansion HDD, USB 3.0 & USB-C for PC, Mac, Desktop, Laptop, Smartphone, PS4, Xbox One, Xbox 360, Office & Game Black
  • 【Versatile Storage Expansion – For Gaming, Work & Everyday Use】 Running out of space on your PS5 or Xbox Series X/S? This external hard drive lets you store and play PS4 / Xbox One games directly, instantly freeing up your console’s internal storage for next‑gen titles. At the same time, it handles work file backups, media libraries, and cross‑device data transfers with ease. One drive, all your needs. *(Note: PS5 / Xbox Series X|S games cannot be run or stored directly from the external hard drive. However, by offloading your PS4 / Xbox One games, you can free up valuable space for newer titles.)*
  • 【Patented Silicone Sleeve – Data Protection You Can Count On】 Worried about drops? We’ve got you covered. The patented built‑in silicone sleeve acts like a shock‑absorbing armor, cushioning your drive against bumps and falls. Whether it’s important work documents, precious family photos, or hard‑earned game saves, your data deserves this level of protection.
  • 【Plug & Play, Compatible with Computers & Consoles】 No complicated setup—just plug in and go. Works seamlessly with Windows, Mac, and Linux computers, as well as PS4, PS5, Xbox One, and Xbox Series X/S. Process files at the office, back up data at home, or enjoy gaming in your downtime—one drive handles all your devices, simply and hassle‑free.
  • 【USB 3.0 Ultra‑Fast Transfer – No More Waiting】 Tired of watching progress bars crawl? With USB 3.0 speeds up to 5Gbps, large files transfer in seconds. Whether you’re moving work documents, transferring hundreds of gigs of games, or backing up a year’s worth of photos, you get more done in less time.
  • 【Sleek, Lightweight, and Ready to Go】 Weighing just 0.16 kg—lighter than a can of soda—this compact drive features a stylish mirror‑and‑frosted finish. Toss it in your bag and go, whether you’re heading to the office, visiting a friend for a gaming session, or giving a presentation on the road.
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:RepairSourceWindows /LimitAccess

Replace C:RepairSourceWindows with the actual path. /LimitAccess stops DISM from contacting Windows Update, so use it only when the local source is complete and appropriate.

A network source is also possible:

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:\ServerNamec$Windows /LimitAccess

The source computer should use the same Windows generation and a closely matching feature-update version as the target. A Windows 10 source is not a suitable substitute for Windows 11, and an old feature-update image may not contain the components required by a newer installation.

Match the repair source carefully

For reliable results, match the target installation’s:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Windows generation: Windows 10 or Windows 11
  • Feature-update version, such as Windows 10 22H2 or Windows 11 24H2, 25H2, or 26H1
  • Architecture: x64 or ARM64
  • Edition: Home, Pro, Enterprise, or Education
  • Language and servicing state, as closely as practical

A monthly cumulative-update difference does not necessarily make a source unusable, but a different feature-update version, architecture, edition, or language can cause source-not-found or applicability errors. As of October 14, 2025, ordinary Windows 10 22H2 editions have reached the end of standard support; LTSC editions follow separate lifecycles. Use supported Windows 11 media where appropriate, and match the target version rather than choosing media solely because it says “Windows 11.”

Use an ISO or USB containing install.wim or install.esd

Mount a Windows ISO by double-clicking it, or connect the installation USB. Assume the media is drive X:. First inspect the image file instead of guessing its edition index.

For a WIM file:

DISM /Get-WimInfo /WimFile:X:sourcesinstall.wim

For an ESD file:

DISM /Get-WimInfo /WimFile:X:sourcesinstall.esd

Record the index that corresponds to the installed edition. Then use the matching command, replacing INDEX:

DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:X:sourcesinstall.wim:INDEX /LimitAccess
DISM /Online /Cleanup-Image /RestoreHealth /Source:ESD:X:sourcesinstall.esd:INDEX /LimitAccess

If DISM rejects the direct WIM or ESD path, mount the correct image index and use its Windows directory as the source:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
mkdir C:Mount
DISM /Mount-Wim /WimFile:X:sourcesinstall.wim /Index:INDEX /MountDir:C:Mount /ReadOnly
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:MountWindows /LimitAccess

When the repair is complete, remove the temporary mount:

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
DISM /Unmount-Wim /MountDir:C:Mount /Discard

Do not use a random index. A multi-edition ISO can contain several images, and selecting the wrong one is a common reason for error 0x800f081f.

Offline repair when Windows will not boot

Enter Windows Recovery Environment

From Windows 11, go to Settings > System > Recovery > Advanced startup > Restart now.

From Windows 10, go to Settings > Update & Security > Recovery > Advanced startup > Restart now.

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

You can also hold Shift while selecting Power > Restart. If Windows cannot reach the desktop, boot from Windows installation media, select the language and keyboard options, choose Next, and then select Repair my PC.

In WinRE, select:

Troubleshoot > Advanced options > Command Prompt

If BitLocker is enabled, WinRE may request the BitLocker recovery key.

Find the correct drive letters

WinRE often assigns different letters than normal Windows. The installed system may be D: or E:, not C:.

diskpart
list volume
exit

Test likely volumes:

dir C:Windows
dir D:Windows
dir E:Windows

Use the volume containing the real Windows directory. Identify the installation-media letter by looking for setup.exe and a sources folder. The examples below assume Windows is on D: and the media is on E:.

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

Run offline DISM

Scan the offline installation:

DISM /Image:D: /Cleanup-Image /ScanHealth

Repair it using Windows Update-equivalent servicing files already available to the recovery environment or image:

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
DISM /Image:D: /Cleanup-Image /RestoreHealth

To use a WIM or ESD on installation media, first identify its index with the appropriate /Get-WimInfo command, then run:

DISM /Image:D: /Cleanup-Image /RestoreHealth /Source:E:sourcesinstall.wim:INDEX /LimitAccess
DISM /Image:D: /Cleanup-Image /RestoreHealth /Source:E:sourcesinstall.esd:INDEX /LimitAccess

If the direct source is not accepted, mount the image:

mkdir D:Mount
DISM /Mount-Wim /WimFile:E:sourcesinstall.wim /Index:INDEX /MountDir:D:Mount /ReadOnly
DISM /Image:D: /Cleanup-Image /RestoreHealth /Source:D:MountWindows /LimitAccess
DISM /Unmount-Wim /MountDir:D:Mount /Discard

Run offline SFC

After offline DISM completes, scan the offline 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.
sfc /scannow /offbootdir:D: /offwindir:D:Windows

/offwindir identifies the offline Windows directory. /offbootdir identifies the boot directory. On some systems the boot files are on a separate, small system partition, so do not assume both paths use the same letter. Confirm the layout in DiskPart if the command fails.

For a targeted file scan, use:

sfc /scanfile:D:WindowsSystem32kernel32.dll /offbootdir:D: /offwindir:D:Windows

Restart from WinRE with:

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

Common errors and what to do

DISM Error 87

Error 87 generally means invalid syntax. Check for a misspelled option, a missing space, or smart punctuation copied from a formatted webpage. Use ordinary hyphens, forward slashes, colons, and straight quotation marks.

A valid online command is:

DISM.exe /Online /Cleanup-Image /RestoreHealth

DISM Error 0x800f081f

“The source files could not be found” usually indicates one of these problems:

  • Windows Update cannot provide the required files.
  • The ISO or network source is for the wrong feature-update version.
  • The wrong WIM or ESD index was selected.
  • The source path is incorrect.
  • /LimitAccess was used with an incomplete or incompatible source.

Verify the image index, check the drive letter, and use media matching the target’s edition, architecture, language, and Windows generation.

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

SFC cannot perform the requested operation

Try SFC in Safe Mode. If it still fails, run the offline command from WinRE and verify both drive letters. Microsoft also recommends checking that these directories exist on the running installation:

Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.
%WinDir%WinSxSTempPendingDeletes
%WinDir%WinSxSTempPendingRenames

DISM and SFC finish, but Windows is still broken

These tools repair the component store and protected system files. They do not fix every startup or stability problem. Persistent failures can be caused by bad storage, defective RAM, malware, incompatible drivers, damaged boot configuration, registry problems, or third-party software.

For a boot failure, try Troubleshoot > Advanced options > Startup Repair. Startup Repair targets several startup-related problems, including damaged system files, boot-configuration data, incompatible drivers, and certain registry errors.

When to use a reinstall instead

Stop repeating DISM and SFC when the component store is reported as non-repairable, the same commands repeatedly fail with a matching source, or Windows remains unstable after successful repairs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Back up personal files.
  2. Check the health of the storage drive and test memory.
  3. Review C:WindowsLogsDISMdism.log and C:WindowsLogsCBSCBS.log.
  4. Try System Restore, Startup Repair, or Reset this PC from Windows Recovery.
  5. On Windows 11, check Settings > System > Recovery > Fix problems using Windows Update > Reinstall now. When available, this reinstalls the current version while preserving apps, files, and settings.
  6. For an in-place reinstall, start setup.exe from installation media while signed in to Windows. Select Change what to keep > Keep personal files and apps.

Be careful when booting directly from installation media: choosing a fresh installation is not the same as an in-place repair and can remove apps, files, or partitions depending on the choices made.

DISM and SFC advice to avoid

  • Do not run SFC first by default. The current Microsoft procedure is DISM first, then SFC.
  • Do not run SFC three times just because a guide says so. There is no fixed number of required repetitions. Read the result and address the repair-source problem.
  • Do not interpret /Online as “download from the internet.” It identifies the currently running target image.
  • Do not assume WinRE uses C:. Verify the Windows volume.
  • Do not guess the ISO index. Use /Get-WimInfo first.

FAQ

Should I run DISM or SFC first?

Run DISM.exe /Online /Cleanup-Image /RestoreHealth first, then run sfc /scannow. DISM repairs the component store that SFC uses as a source for protected system files.

Can DISM repair Windows without internet access?

Yes. Supply a matching local directory, ISO, USB, or network share with /Source and use /LimitAccess to prevent DISM from contacting Windows Update. The source must closely match the target Windows version, edition, architecture, and language.

Why does DISM say the source files could not be found?

Error 0x800f081f commonly results from a wrong WIM/ESD index, incorrect drive letter or path, unavailable Windows Update files, or media from a different feature-update version. Use DISM /Get-WimInfo to identify the correct edition index.

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

Will DISM or SFC fix a Windows PC that will not boot?

They can repair some system-file and component-store causes, but not every boot problem. Run their offline forms from WinRE after confirming the Windows drive letter. Also try Startup Repair when the failure involves boot configuration, drivers, or other startup components.

The Bottom Line

For a running PC, use DISM.exe /Online /Cleanup-Image /RestoreHealth, wait for it to finish, and then run sfc /scannow. For an unbootable PC, identify the Windows volume in WinRE and use /Image with offline SFC parameters. If a source is required, match the ISO or WIM/ESD index to the installed Windows version instead of repeatedly retrying the same command.

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.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.