DISM Error 0x800f081f and Error 87 in Windows 11: How to Fix Source File and Command Errors


DISM error 0x800f081f usually means that the DISM tool could not find the files it needs to repair Windows, and error 87 usually means that the command was typed or started in a way DISM does not accept. This guide explains how to tell the two apart, how to retype the command safely, how to check and retry the repair, how to use a matching local source, and when to stop and get help.
Last reviewed: November 24, 2026. Steps were compared with Microsoft documentation where a page exists; none was run on a real PC. The top picture is a generated illustration.
Quick answer: what DISM error 0x800f081f means and what to do
The short version
- Error 0x800f081f means DISM could not find the source files it needs. Microsoft's repair guidance says the default source is Windows Update, so a failed connection or a blocked update service is a common cause.
- Error 87 usually points to the command itself: a missing space before a slash, the switches in the wrong order, or a Command Prompt or Terminal that was not opened as administrator.
- Retype the exact command in an administrator Terminal, then run CheckHealth, ScanHealth and RestoreHealth in that order, and restart between attempts.
- If Windows Update cannot supply the files, point RestoreHealth at a Windows 11 image that matches your installed edition, version and language, and read the image index first.
- Run sfc /scannow after DISM finishes, and back up your files before you change anything.
In this guide
What DISM is doing
DISM stands for Deployment Image Servicing and Management. When you run it against the running Windows installation, it checks the component store that Windows uses to repair and install features, and it can replace damaged parts of that store with good copies. Registry cleaners cannot do this job; see DISM compared with registry cleaners. Microsoft describes the repair operation as a way to repair an online Windows image, and it notes that an online image can also try to repair itself when it becomes unserviceable.
The repair runs in four stages. Each stage depends on the one before it, so a failure early in the chain explains errors later on.
- Check CheckHealth reports whether corruption is recorded and whether the image is healthy, repairable or non-repairable.
- Scan ScanHealth looks more closely for corruption. It takes several minutes on many PCs, so wait for it to finish.
- Repair RestoreHealth downloads or copies replacement files from a source. Without a /Source switch, Microsoft says the default repair source is used, and that default is determined by Group Policy settings.
- Verify After a restart, run sfc /scannow to check protected system files. Microsoft's System File Checker guidance says to run DISM first, because DISM supplies the files that SFC needs.
Errors and first fixes
The table below lists the messages people most often report with this command. The meanings come from Microsoft's pages where we could confirm them, and are hedged where we could not. Read the notes in the last column before you act.
| Message or symptom | What it usually means | First safe step | Confidence |
|---|---|---|---|
| Error: 0x800f081f The source files could not be found | DISM could not find the files it needs in the source it used. Microsoft's installation error notes list a missing or incomplete source, and a source that the user cannot read, as causes. | Retype the command in an administrator Terminal, then retry. If it fails again, use a matching local source. | Causes described on Microsoft's .NET Framework 3.5 installation errors page, a related feature install, not DISM RestoreHealth; the DISM wording is the same message shown in community reports. |
| Error: 0x800f0906 The source files could not be downloaded | The PC could not download the files from Windows Update. Microsoft lists network, proxy and firewall problems as causes, and a managed PC may be set to use an internal update server. | Check the internet connection, then retry. Use a local source if the download keeps failing. | Cause described on Microsoft's .NET Framework 3.5 installation errors page, a related feature install, not DISM RestoreHealth; the DISM wording is hedged. |
| Error: 87 The parameter is incorrect | DISM did not accept the command as typed. Common reasons are a missing space before a slash, switches in an unexpected order, a switch that does not apply to this Windows version, or a window that was not opened as administrator. | Copy the exact command from a code box in this guide, check the spaces, and run it again in Terminal (Admin). | Hedged. We did not confirm error 87 on a Microsoft page for this command; the causes are common explanations to check. |
| Error 50 | A general Windows error that can appear when a request is not supported. Its meaning in DISM is not confirmed on a page we opened. | Read the full DISM output and the log file, then check the command syntax against Microsoft's DISM reference. | Unconfirmed. Treat this as a prompt to check the command, not as a diagnosis. |
| Progress stalls at 20 percent or 62.3 percent | The progress display stops while DISM is still working or waiting on a download. Microsoft's pages we opened do not say the bar can pause at these figures. | Wait for a long period before you act, check the connection, and close the window only after you have read the notes in the step-by-step fixes. | Unconfirmed. Hedged: we did not find Microsoft text about these percentages. |
Which path to take
Use this decision path to choose the next step. Start at the top and stop when a step fixes the problem.
- Did the command fail with error 87 or a message about parameters?
- Yes: Retype the command in an administrator Terminal and check the spaces and switches. Then retry.
- No: go to the next question.
- Does the message say the source files could not be found or downloaded?
- Yes: Check the internet connection and Windows Update, restart, and retry RestoreHealth.
- Still failing: go to the local source steps below.
- Do you have a Windows 11 disk image that matches this PC?
- Yes: Read the image index, run RestoreHealth with the WIM source, and then run sfc /scannow.
- No: Get an official image first. Do not use files from unofficial sites.
- Does the problem remain after all the steps?
- Yes: Read the DISM log, then consider a repair install or get help.
Step-by-step fixes
Before you start
Back up your personal files before you run repair commands. Do not run /ResetBase as a fix for these errors: it is a cleanup switch, and it does not repair missing source files. Component store cleanup is a separate task, covered in our guides on Windows Update cleanup in Windows 11 and the WinSxS folder in Windows 11. Never download install.wim or install.esd from unofficial sites, because a modified image can put unknown files into Windows. Menu names in this guide follow Windows 11 as we understood it while writing, and they may differ by version.
Step 1: Back up your files
Make a copy of your personal files before any repair. If you already keep a current backup, check that it opens, and skip to step 2. For a full image or file backup, follow our guide to back up your Windows PC files and system image before continuing. Once the backup works, you may also want a boot option ready; our guide to create a Windows 11 recovery drive explains that step.
You should see: a backup you can open and read, with your documents and pictures in it.
If this fails: Do not run any repair command until the backup works. A repair can fail in the middle, and a backup is the only safe way back.
Step 2: Open Terminal as administrator
Right-click the Start button and choose Terminal (Admin). If that option is not shown, search for Terminal in the Start menu, right-click it, and choose Run as administrator. If Windows asks for permission, select Yes. Microsoft's System File Checker guidance uses the same approach: open an elevated Command Prompt, then run the command.
You should see: a window whose title shows Administrator, and a prompt that is ready for input.
If this fails: If you cannot open an administrator window, your account may not be an administrator. Sign in with an administrator account, or ask the person who manages the PC. If Windows will not open its normal tools at all, our guide to booting into Safe Mode in Windows covers the start-up options.
Step 3: Retype the command exactly
Do not paste the command from an old note or a web page, because a hidden character or a missing space can cause error 87. If Windows says a command is not recognized, see our guide to fix PATH and command errors. Type this command, with a space before each slash and no extra characters, then press Enter.
DISM /Online /Cleanup-Image /CheckHealth
You should see: a result that reports whether the image is healthy, repairable or non-repairable. A healthy result means that no corruption was recorded, and a repairable result means that RestoreHealth can try.
If this fails: If you see error 87, look at the spaces. The most common mistake is a command written as DISM /Online /Cleanup-Image/CheckHealth with no space before the last slash. Retype it exactly as shown and try again.
Step 4: Run ScanHealth
Run ScanHealth next. It checks more deeply and can take several minutes, so leave the window open until it reports a result.
DISM /Online /Cleanup-Image /ScanHealth
You should see: a progress display that moves forward, then a final result about corruption. If you see the progress stop, wait for a long period before you act, because the display can look still while the scan works. If Windows is busy installing updates in the background, wait first and read our TiWorker.exe high CPU guide.
If this fails: If the scan ends with an error, keep the exact message and go to the log step later in this guide. Do not run other commands until you have the message.
Step 5: Run RestoreHealth with the default source
Run the repair with no /Source switch. Without a source, Microsoft says the default repair source is used for online images, which is the source Group Policy sets for features on demand. In most home PCs that means Windows Update.
DISM /Online /Cleanup-Image /RestoreHealth
You should see: the progress reach 100 percent and a message that the operation completed successfully. A success message means DISM finished the repair; it does not prove that every file is correct, so run sfc /scannow in step 12.
If this fails: Look for error 0x800f081f or 0x800f0906. Go to step 6 for the restart and the update check, then continue to step 7 if the message does not change.
Step 6: Restart and retry
Restart the PC, open Terminal (Admin) again, and run CheckHealth and RestoreHealth once more. A restart clears any update or service state that was holding the repair. If the errors began soon after an update was installed, see our guide to uninstalling a Windows update to roll back. If you changed settings or drivers shortly before the errors began, using System Restore may be a safer route than repeated repair attempts.
You should see: the same results as before, or a success message. If the result changes, you have learned that the first attempt was affected by a temporary state.
If this fails: Keep the same message and continue to step 7. Do not run the repair in a loop; two or three attempts with changes in between are enough before you use a local source.
Step 7: Check Windows Update and the connection
RestoreHealth uses Windows Update as its default source, so a PC that cannot reach Windows Update cannot download the files. Open Settings, select Windows Update, and check that it can check for updates. If updates fail there too, follow our guide to fix Windows Update when it is stuck or failing. If the PC is online but the connection itself is poor, see fix Wi-Fi connected with no internet on Windows. If the Settings app will not open to check Windows Update, see our guide to the Windows 11 Settings app not opening.
You should see: Windows Update can check for updates without an error, and your browser loads a normal website.
If this fails: If a network or proxy setting blocks Windows Update, the PC may be managed by an organisation. Ask the administrator, because changing these settings yourself can break the connection for other users on the same network.
Step 8: Use a matching local Windows 11 image
If Windows Update cannot supply the files, use a Windows 11 disk image as the source. The image must match the installed edition, version and language. Microsoft's Windows 11 download page is the place to get an official image. Check the page for the current options, and keep the image on a drive that is not the system drive. Free space matters here too; our guide to system and reserved storage in Windows 11 explains what takes up space. Mount the ISO by double-clicking it, then note the drive letter Windows gives it, for example D:.
You should see: a new drive letter with a folder named sources. Inside that folder there should be an install.wim or install.esd file.
If this fails: If there is no sources folder, the download may be incomplete or it may be the wrong image. Download it again from the official page and check the file size against the page before you mount it again.
Step 9: Find the image index that matches your edition
An image can hold more than one edition, and each one has a number called an index. The index must match the edition installed on your PC. To see the installed edition, open Settings, then System, then About, and note the Windows edition and version. The command below lists the editions in the image. Replace D: with the drive letter you noted.
DISM /Get-WimInfo /WimFile:D:\sources\install.wim
You should see: a list of indexes, each with a name such as Windows 11 Home or Windows 11 Pro, and a description. Choose the index whose edition name matches your installed edition.
If this fails: If the file is install.esd instead, use the ESD command in step 11. If the list shows no edition that matches yours, stop here. A different edition or version cannot be used as the source, so download the matching image.
Step 10: Run RestoreHealth with the WIM source
Run RestoreHealth with the WIM source and the index you chose. Microsoft's repair guidance shows the /Source and /LimitAccess switches together, and says that /LimitAccess stops DISM from using Windows Update as a repair source or backup source. Use the index number from step 9 at the end of the source path, and keep the drive letter that matches your ISO.
DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess
You should see: the progress reach 100 percent and a message that the operation completed successfully. The number 1 in the command is an example index only. Use the index you found in step 9.
If this fails: If you see error 0x800f081f again, the index may not match your edition, the path may be wrong, or the image may be incomplete. Check the drive letter, check the index, and check that the image was not changed since you downloaded it.
Step 11: Try the ESD variant if the image uses install.esd
Some images store the same files in an install.esd file instead of install.wim. The steps are the same, with the ESD name. Use the index from the ESD listing, and keep /LimitAccess so that the repair uses only your local image. We did not open a Microsoft page that confirms this exact ESD syntax for DISM, so check it against the DISM reference before you run it.
DISM /Get-WimInfo /WimFile:D:\sources\install.esd
You should see: a list of indexes in the same format as the WIM listing.
If this fails: If the ESD listing fails with an error, the file may be damaged. Download the image again from the official page instead of trying a different file.
Step 12: Run System File Checker after DISM
When DISM finishes, run System File Checker to check protected system files. Microsoft's System File Checker guidance says to run DISM first, because DISM provides the files SFC needs. For the routine SFC and DISM workflow, read our SFC and DISM repair guide, which covers that routine in full. For the case where SFC itself reports problems it cannot fix, see SFC found corrupt files but could not fix them.
sfc /scannow
You should see: a result that says no integrity violations were found, or that corrupt files were repaired. Do not close the window until the scan reaches 100 percent.
If this fails: If SFC reports that it could not fix some files, do not keep running the same command. Use the log steps below and the stop-and-get-help section.
Step 13: Read the DISM log without changing it
DISM writes a log file that records each step. The log path that DISM reports in its output is C:\Windows\Logs\DISM\dism.log. Open the file in a plain text viewer and search it for the word Error, and note the error code and the time. Read the file only. Do not delete, move or edit it, because the log is the evidence you may need if you ask for help.
You should see: lines with dates, times and an error code that matches the message in your Terminal window.
If this fails: If the file is missing, the operation may not have reached the logging step, or the file may have been moved. Keep the Terminal output instead, and note the exact command you ran.
Step 14: Use a repair install as the last resort
If none of the steps above fix the repair, a repair install of Windows with a matching official image may be the next step. It reinstalls Windows files while keeping your apps and files in most cases, but it is a larger change. Back up first, read our guide on repairing Windows 11 without losing files, and read the warning below before you start. A fresh start is a different route: a clean install of Windows 11 from a USB drive erases the drive, and resetting Windows 11 while keeping files is another option to compare before you choose.
Before you start
A repair install changes system files and can remove some installed apps. Keep your backup, your product key or Microsoft account sign-in, and your drivers list before you begin. If you are not sure of any of these, stop and ask for help first.
You should see: a Windows setup process that asks which files to keep, and a result after restart that shows the same Windows version.
If this fails: If the setup stops with an error, write down the error code and check the log from step 13 before you try again.
How to tell it is fixed
A fix is confirmed when the commands report a clean result and the problems you saw before have stopped. Check the list below after your last repair attempt.
- CheckHealth reports that no component store corruption was detected, or that the image is healthy.
- RestoreHealth finishes with a success message and no error code.
- sfc /scannow reports that no integrity violations were found, or that it repaired files.
- Windows Update can check for updates, and the errors that started this guide do not come back on the next run.
When to stop and get help
Stop and get help if the same error returns after a restart and a matching local source, if the log shows errors on the drive itself, or if the PC shows signs of failing storage. Our guide to checking hard drive or SSD health with SMART is a good place to start if the drive is suspected. If a driver is named in the log or in the failing results, read our guide to updating drivers in Windows 11 before you change anything else. If the PC will not start at all, our guide to Windows startup repair when Windows will not boot is the next step. You can also use the Repair Assistant on our site, Repair Assistant, and keep a copy of the log and the command output for whoever helps you. If the message names a corrupt configuration registry database instead, our guide to error 0x800703F1 and the corrupt registry database covers that case.
Frequently asked questions
About the errors
What does DISM error 0x800f081f mean?
It means DISM could not find the source files it needs to repair the image. The source can be Windows Update by default, or a local image if you specify one.
Is error 87 a damaged Windows problem?
Not necessarily. Error 87 usually means DISM did not accept the command as typed, so check the spaces, the switch order and whether Terminal was opened as administrator.
What does error 0x800f0906 mean?
Microsoft's installation error guidance says it means the PC could not download the required files, which is often a network, proxy or firewall problem.
Why does the progress bar stop at 20 or 62.3 percent?
We did not confirm this behaviour on a Microsoft page. Wait for a long period, check the connection, and read the log before you close the window or run another command.
About the fixes
Should I use /ResetBase to fix this?
No. Treat /ResetBase as a cleanup step, not a repair for missing source files. It does not restore the files DISM is asking for.
Do I need to run sfc /scannow after DISM?
Yes, as a check. Microsoft's System File Checker guidance says to run DISM first, then SFC, so that the two tools work from the same good files.
Where do I download a matching Windows 11 image?
Use Microsoft's official Windows 11 download page, check the edition, version and language, and keep the file on a drive other than the system drive. Do not use files from unofficial sites.
Can I use an install.wim file from a friend's PC?
Avoid it. The edition, version and language must match your PC, and a file from an unknown source can be modified. Download an official image instead.
More help
For other repair guides and step-by-step help with Windows problems, visit PC repair guides on PC Repair Atlas.
How this guide was checked
We compared each step with the Microsoft pages listed in the sources, and hedged any step we could not confirm on a Microsoft page. None of the commands was run on a real PC while this guide was written, so check each command against your own output and the current DISM reference before you rely on it.