Site icon Winhelponline

[Fix] DISM and .NET Framework 3.5 Error 0x800F081F

When running the following DISM command, the error 0x800F081F may appear in some systems. The same error occurs when installing the .NET Framework in Windows 10.

Dism /Online /Cleanup-Image /RestoreHealth
Error: 0x800f081f
The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
DISM Error: 0x800f081f — The source files could not be found

DISM.log

Error DISM DISM Package Manager: PID=13368 TID=5124 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)
Error DISM DISM Package Manager: PID=13368 TID=5124 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg
Error DISM DISM Package Manager: PID=13368 TID=5124 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x800f081f)
Error DISM DISM Package Manager: PID=13368 TID=5124 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg
Error DISM DISM Package Manager: PID=13368 TID=5124 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)
Error DISM DISM Package Manager: PID=13368 TID=5124 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)

CBS.log

CBS    Exec: Processing complete, session(Corruption Repairing): 30459372_734419507 [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
CBS    Session: 30459372_734419507 failed to perform store corruption detect and repair operation. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
CBS    Session: 30459372_734419507 finalized. Download error: 0x80240022 [Unknown Error], Reboot required: no [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
CBS    Failed to FinalizeEx using worker session [HRESULT = 0x800f081f]

The same error (0x800F081FCBS_E_SOURCE_MISSING) may occur when you attempt to install .NET Framework 3.5 via Optional Features.

Windows couldn't find required files to complete the requested changes. Make sure you're connected to Internet, and try again:

Error code: 0x800F081F

DISM.log

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
0x800F081F - CBS_E_SOURCE_MISSING

This post tells you how to fix the .NET Framework installation and the DISM error 0x800f081f in Windows 10.

Cause

The error 0x800F081F when running DISM or .NET Framework installation can occur due to one of the following reasons:

Fix: DISM and .NET Framework Error 0x800f081f

Option 1: Bypass WSUS

If your computer is configured to use your company’s WSUS server or SCCM, temporarily bypass WSUS/SCCM using the following registry edit (requires administrator privileges).

  1. Right-click Start, and click Run
  2. Type regedit.exe and click OK
  3. Go to the following registry key if it exists:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

    (If the above registry branch or the value UseWUServer doesn’t exist, then it means that the WU server policy is not set. In that case, skip to Step 5.)

  4. In the right pane, if the value named UseWUServer exists, set its data to 0
  5. Go to the following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
  6. Delete the value named DisableWindowsUpdateAccess if it exists.
  7. Exit the Registry Editor
  8. Restart Windows.

Now, your computer is configured to fetch files or packages from Microsoft’s Windows Update servers rather than your office network’s WSUS/SCCM server.

After restarting Windows, you should be able to run the DISM command or install .NET Framework successfully. Run the DISM command (or install .NET Framework) after connecting your computer to the internet. DISM fetches the missing files from Microsoft’s servers automatically.

Install .NET Framework

Now, run this command if you want to install .NET Framework:

dism /online /enable-feature /featurename:NetFX3 /All

Alternatively, you can install it via Windows Features (optionalfeatures.exe)

If that doesn’t work, follow the instructions in Option 2 below.


Option 2: Run DISM or Install .NET Framework from local installation source (offline)

Fix for .NET Framework error 0x800f081f

To fix the error 0x800F081F when installing .NET Framework, mention the local source path (i.e., mounted ISO or USB setup disk).

1) Download a fresh copy of Windows 10 or 11 ISO from Microsoft.

2) Mount the ISO to a drive letter — e.g., E:\.

The sources\sxs folder on the ISO or USB setup disk contains the following on-demand package files that are needed to install .NET Framework offline:

(If you have a multi-architecture Windows 10 setup disk, be sure to use the correct “Sources” folder. For x64 version, the path could be H:\x64\sources\sxs and for x86, the path H:\x86\sources\sxs.)

3) To install .NET Framework using the local install source (e.g., H:\Sources from the USB Setup disk or mounted ISO), run the appropriate command:

dism /online /enable-feature /featurename:NetFX3 /All /Source:H:\sources\sxs /LimitAccess

(or)

dism /online /enable-feature /featurename:NetFX3 /All /Source:H:\x86\sources\sxs /LimitAccess

(or)

dism /online /enable-feature /featurename:NetFX3 /All /Source:H:\x64\sources\sxs /LimitAccess

You should see the following output:

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

Or, if you prefer PowerShell instead of DISM, then use this command to install .NET Framework using a local installation source:

Enable-WindowsOptionalFeature –Online –FeatureName "NetFx3" –Source H:\sources\sxs -LimitAccess

(or)

Enable-WindowsOptionalFeature –Online –FeatureName "NetFx3" –Source H:\x86\sources\sxs -LimitAccess

(or)

Enable-WindowsOptionalFeature –Online –FeatureName "NetFx3" –Source H:\x64\sources\sxs -LimitAccess

Fix for DISM error 0x800f081f

The solution for DISM Error 0x800f081f would be to download a fresh ISO from Microsoft, slipstream the Windows 10 setup disk, and mention it as the repair source when running the DISM command. Slipstreaming is a process of integrating updates (and drivers, optionally) and making an updated Windows 10 or 11 Setup disk or ISO.

  1. Follow the steps in the article Slipstream Windows 10/11 to create a slipstreamed Windows 10 setup disk.
  2. Then, open an elevated or admin Command Prompt.
  3. The ISO files downloaded from Microsoft have multiple Windows 10 Editions in them. You need to find the index that corresponds to the edition of Windows you’re going to repair. You can find it using DISM’s Get-Wiminfo command-line.
  4. Find the list of indexes and the corresponding editions found in the install.wim, by running the following command:
    dism /get-wiminfo /wimfile:"E:\sources\install.wim"

    … where E:\ is the drive letter of the mounted ISO or Windows Setup DVD.

    In the case of ISOs downloaded from Microsoft, you’ll see more indexes (Meaning: Multiple windows images or different editions combined into the install.wim). For example, here’s the list of indexes found inside the Windows 10 ISO (may vary from ISO build to ISO build) from Microsoft:

    Index : 1
    Name : Windows 10 Home
    Description : Windows 10 Home
    Size : 14,168,728,218 bytes
    
    Index : 2
    Name : Windows 10 Home N
    Description : Windows 10 Home N
    Size : 13,409,860,497 bytes
    
    Index : 3
    Name : Windows 10 Home Single Language
    Description : Windows 10 Home Single Language
    Size : 14,168,323,899 bytes
    
    Index : 4
    Name : Windows 10 Education
    Description : Windows 10 Education
    Size : 14,413,769,870 bytes
    
    Index : 5
    Name : Windows 10 Education N
    Description : Windows 10 Education N
    Size : 13,651,680,505 bytes
    
    Index : 6
    Name : Windows 10 Pro
    Description : Windows 10 Pro
    Size : 14,413,947,833 bytes
    
    Index : 7
    Name : Windows 10 Pro N
    Description : Windows 10 Pro N
    Size : 13,649,482,925 bytes
    
    Index : 8
    Name : Windows 10 Pro Education
    Description : Windows 10 Pro Education
    Size : 14,413,708,288 bytes
    
    Index : 9
    Name : Windows 10 Pro Education N
    Description : Windows 10 Pro Education N
    Size : 13,651,618,023 bytes
    
    Index : 10
    Name : Windows 10 Pro for Workstations
    Description : Windows 10 Pro for Workstations
    Size : 14,413,739,079 bytes
    
    Index : 11
    Name : Windows 10 Pro N for Workstations
    Description : Windows 10 Pro N for Workstations
    Size : 13,651,649,264 bytes
  5. Let’s say you have Windows 10 Home Edition. The index is 1 as per the above output. Therefore, run the following command:
    Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:"E:\Sources\Install.wim":1 /limitaccess

    That’s it! the DISM operation has now been completed successfully!

    *Important*: Don’t use ESD!

    If you have install.esd (instead of install.wim) in the Windows 10/11 setup disk, you must convert the ESD file into WIM for the above DISM command to work. In our tests, DISM was unable to use Install.esd as the source and the command ended up with the 0x800f081f error every time, regardless of the syntax (/source:wim:h:\sources\install.esd or /source:esd:h:\sources\install.esd) used.

    The following command is absolutely useless. Don’t use it. It does nothing.

    Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:"E:\Sources\Install.esd":1 /limitaccess

    After converting the ESD file to WIM, I ran DISM mentioning the Install.wim file as the source. It ran perfectly fine, and it restored the missing manifest files indeed!

    Please keep this important point in mind when running DISM.

    If you don’t use a slipstreamed Windows 10/11 disk (integrated with the latest updates), the error 0x800f081f may still appear. The ISO/repair source must be the same build your system is running. For instance, you can’t repair a Windows 10 build 16299.98 using the Windows 10 Build 16299.15 ISO.

This fixes the DISM error 0x800f081f, and you should now see the message “The restore operation completed successfully.”

Once the DISM command completes successfully, follow up with the sfc /scannow command (from elevated Command Prompt) if necessary. For more information, check out the article Repair Windows 10 Using DISM and SFC.

Exit mobile version