Check your exact Windows version and language (Win + R, winver). For steps 3 and 4 you need a Windows ISO of the same version and language from Microsoft's software download page. If Windows cannot start, see the startup guide.
Work through these checks
0 of 7 complete01Check where the error appears
The same code has three common contexts, and each needs a slightly different fix.
- DISM /RestoreHealth fails with 0x800f081f: go to steps 2 and 3.
- Installing .NET Framework 3.5 fails: go to step 4 (or the .NET 3.5 guide on this site).
- A Windows update fails: go to steps 2, 3 and 6.
You know which steps apply.
If it does not helpContinue with the matching step.
02Make sure Windows Update works
Microsoft notes that Windows Update is the default repair source for DISM.
- Check the internet connection and disconnect VPNs or proxies for the test.
- Open Settings > Windows Update and check for updates.
- Run DISM /Online /Cleanup-Image /RestoreHealth again in Terminal (Admin).
DISM completes with "The restore operation completed successfully".
If it does not helpIf Windows Update itself fails, use a Windows ISO as the source in step 3.
03Repair with DISM from a matching Windows ISO
Microsoft documents using a Windows image as the repair source with /Source and /LimitAccess.
- Right-click the Windows ISO > Mount and note its drive letter (for example D:).
- Run dism /Get-WimInfo /WimFile:D:\sources\install.wim and note the Index of your edition.
- Run DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:6 /LimitAccess (use your index), then sfc /scannow.
The ISO must match your Windows version (for example 24H2) and language.
DISM repairs the image using the ISO.
If it does not helpIf the folder contains install.esd instead, use ESD: and that file name. If it still fails with 0x800F081F, the ISO does not match your version.
04Install .NET 3.5 from the ISO
Microsoft's method for .NET 3.5 uses the sources\sxs folder on the installation media.
- With the ISO mounted as D:, run Dism /online /enable-feature /featurename:NetFx3 /All /Source:D:\sources\sxs /LimitAccess in Terminal (Admin).
- Microsoft notes 0x800F081F here means the path lacks the files, you lack read access, or the files are invalid for your Windows version.
.NET Framework 3.5 installs.
If it does not helpThe .NET 3.5 guide on this site covers the other .NET error codes.
05Check the optional component policy
A group policy can point Windows to a source that no longer exists.
- On Windows Pro, run gpedit.msc and open Computer Configuration > Administrative Templates > System > Specify settings for optional component installation and component repair.
- If it points to an alternate source path that no longer exists, set it to Not Configured, or Enabled with the option to contact Windows Update directly.
- Run gpupdate /force and try again.
Do not change this policy on a managed PC.
Windows uses a valid source.
If it does not helpOn work or school PCs, ask IT; they manage this policy.
06Clear the update cache and run SFC
For failing updates, a damaged cache can keep pointing to missing files.
- In Command Prompt (Admin), run net stop wuauserv and net stop bits, then ren %systemroot%\SoftwareDistribution\Download Download.bak, then net start bits and net start wuauserv.
- Run sfc /scannow, restart and check for updates.
Use Command Prompt, not PowerShell, for the ren command.
Updates install.
If it does not helpIf not, repair Windows in step 7.
07Repair Windows with an in-place upgrade
When the component store cannot be repaired, Microsoft's guidance is that the image should be replaced; an in-place upgrade does that while keeping your data.
- Mount the matching Windows ISO.
- Run setup.exe and choose to keep personal files and apps.
Back up important files before starting.
Windows is repaired and DISM, .NET and updates work.
If it does not helpRun Windows Update afterwards.
Possible causes
- DISM cannot download repair files from Windows Update
- A Windows ISO or source folder that does not match the installed version
- A group policy pointing to a missing or inaccessible source
- No read access to the source path
- Damaged component store
Was this helpful?
Your progress is saved on this device.