Server 2016 Roles and Features not working

Anonymous
2023-10-25T14:55:20+00:00

Have a few Server 2016s getting the following errors: 0x800f0805.

I have done sfc /scannow and dism repairs and random other things I have found online.

When comparing the faulty servers to good servers I do notice the follow registry paths have only 6 entries compared to good servers have a way more.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageIndex

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages

Windows for business | Windows Server | Devices and deployment | Install Windows updates, features, or roles

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-10-26T03:21:09+00:00

    Hi Bahlal

    Error code 0x800f0805 usually indicates that the specific package is not valid Windows package. It may be that the system has an inappropriate package installed (such as a pirated system blindly integrating some strange update packages) or the package file is corrupted (unexpected power failure, rogue virus software).

    You can manually create or modify certain values in the registry to resolve issues where a particular package is not a valid Windows package. You can refer to Error 0x800f0805 when Server Manager and DISM fail to list the available features - Windows Server | Microsoft Learn for instructions on how to operate the registry.

    The other way is replacing the damaged package. You can determine which package is corrupted by consulting the DISM.log. Then download the installation media corresponding to the current operating system version and mount install.wim. For example, the foundation package is corrupted, you will need to run the command: dism /mount-wim /wimfile:install.wim /index:3 /mountdir:D:\windows10_1803. Then find the full file name of the foundation package from the mount directory path D:windows10_1803WindowsservicingPackages. Finally, load the foundation provided by the installation media online to replace the corrupted content. You will need to run the command: dism /online /add-package /packagepath:Microsoft-Windows-Foundation-Package~............At this point, you can perform the enable/disable feature component action to verify success.

    Hope it helps.

    Lei

    0 comments No comments