IBM Support

Enable windows feature results in Error 0x800f081f

Troubleshooting


Problem

Enable Feature failed for

Dism /Online /Enable-Feature /FeatureName:**** /norestart

**** is Feature name, for example "Windows-Defender"

Symptom

  1. Dism.exe /online /enable-feature /featurename:*** /All /Source:c:\temp\mount\windows  /LimitAccess
  2. Output shows Error 0x800f081f – "The source file not found"
  3. Dism.exe /online /Clenup-Image /RestoreHealth
  4. Output shows: The operation completed successfully
  5. Dism.exe /online /Clenup-Image /RestoreHealth /Source:F:\Temp\winsxs /LimitedAccess
  6. Output shows: The operation completed successfully
  7. Dism.exe /online /enable-feature /featurename:*** /All /Source:c:\temp\mount\windows  /LimitAccess
  8. Output shows Error 0x800f081f – "The source file not found"

Cause

Source files (payload) deleted on system

Environment

Windows Server, Windows clients

Diagnosing The Problem

Check DISM and CBS Lofiles - examples:

CBS.log
37110 2024-06-17 12:45:48, Warning               CBS    Current tick count lower than last tick count. [HRESULT = 0x8007000d - ERROR_INVALID_DATA]

37111 2024-06-17 12:45:48, Info                  CBS    Nothing to download, unexpected

37112 2024-06-17 12:45:48, Info                  CBS    Failed to find payload files, component:amd64_windows-defender-drivers_31bf3856ad364e35_10.0.14393.0_none_1e417abb0bebd499, file: WdFilter.sys [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]

37113 2024-06-17 12:45:48, Info                  CBS    CommitPackagesState: Started persisting state of packages

37114 2024-06-17 12:45:48, Info                  CBS    CommitPackagesState: Completed persisting state of packages

37115 2024-06-17 12:45:48, Info                  CSI    0000000c@2024/6/17:10:45:48.741 CSI Transaction @0x2a357950bc0 destroyed

37116 2024-06-17 12:45:48, Info                  CBS    Perf: Stage chain complete.

37117 2024-06-17 12:45:48, Info                  CBS    Failed to stage execution chain. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]

37118 2024-06-17 12:45:48, Error                 CBS    Failed to process single phase execution. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]

Dism Log

2024-06-17 10:12:14, Info                  DISM   DISM Package Manager: PID=11748 TID=11424 CBS session options=0x40100! - CDISMPackageManager::Internal_Finalize
2024-06-17 12:45:48, Info                  DISM   DISM Package Manager: PID=11748 TID=9700  Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS HRESULT=0x800f081f) - CCbsConUIHandler::Error
2024-06-17 12:45:50, Error                 DISM   DISM Package Manager: PID=11748 TID=11424 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)

Select-String -Path C:\Windows\Logs\CBS.log -Pattern "Failed to find payload files" | FT -Autosze -Wrap

gives out related messages for deleted payloads

Show payloads:

dism /english /online /Get-Features /Format:Table

If Windows-defender feature was disabled previously with the payload removal, this means that the feature is not only disable but the sources were completely deleted preventing from being added in the future from system


How remove payload for a feature was removed:

Disable-WindowsOptionalFeature -Online -FeatureName "Windows-Defender" -Remove
Note: Not recommended if we want to enable the feature in the future.

Resolving The Problem

Mount Installation Media - OS ISO:
  • Mount the ISO by double clicking
  • Browse to “"<mount drive>:\sources\ " and copy install.wim to C:\temp
  • Create the folder “Mount” on C:\temp
  • From elevated PowerShell run the command to check the proper index edition to mount from the Install.wim:

dism /get-wiminfo /wimfile:c:\temp\install.wim

  • This will show available editions on the file with index number
  • Mount the image using the following command
  • dism /mount-image /imagefile:c:\temp\install.wim" /index:2 /mountdir:c:\temp\mount

  • The image will be mounted on the created “mounted” folder, when finished,  check the missing payload for component:amd64_windows-defender-drivers_31bf3856ad364e35_10.0.14393.0_none_1e417abb0bebd499 by browsing to C:\temp\mount\windows\sxs
  • Run command:
  • Install-WindowsFeature windows-defender -source c:\temp\winsxs
If this is not solving problem run In-place Upgrade.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB66","label":"Technology Lifecycle Services"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SSTIPK","label":"Microsoft Windows"},"ARM Category":[{"code":"a8mKe000000004NIAQ","label":"Windows"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Product Synonym

Windows Features

Document Information

Modified date:
11 December 2024

UID

ibm17178513