unable to install Windows-Defender feature on windows server 2016

Shewale, Prashant 15 Reputation points
2024-03-21T15:18:38.2366667+00:00

Unable to enable

unable to install Windows-Defender feature on windows server 2016

Install-WindowsFeature -Name Windows-Defender -IncludeAllSubFeature -IncludeManagementTool

s

Install-WindowsFeature : The request to add or remove features on the specified server failed.

Installation of one or more roles, role services, or features failed. Error: 0x800f0831

At line:1 char:1

  • Install-WindowsFeature -Name Windows-Defender -IncludeAllSubFeature - ...
  • 
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
    
        + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand
    
    

Success Restart Needed Exit Code Feature Result


False No Failed {}

==========================================

I ran the following command multiple times and performed several reboots, but the issue remains unresolved.

DISM /Online /Cleanup-Image /StartComponentCleanup DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth SFC /scannow

Windows for business | Windows Server | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-03-25T07:26:58.8933333+00:00

    Hello,

    I suggest that check if .net frame 3.5 and 4.8 has been installed in Server role and feature.

    If the issue still insists, i suggest that specify a source, such as the installation media. Mount the Windows Server 2016 ISO to install windows defender feature.

    [FIX: Windows Defender Feature Installation Failed–Source files could not be found in Server 2016 (Solved) - WinTips.org](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wintips.org%2Ffix-windows-defender-feature-installation-failed-source-files-could-not-be-found-in-server-2016%2F&data=05%7C02%7Cv-xiuyunlian%40microsoft.com%7C668ff502838e448fe75b08dc4c9cd07e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638469483631847957%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=1A%2F3v%2BLpUkVZEyYaMH%2B9glV0KEphFQoG1qMvfYgeC%2Bc%3D&reserved=0"Original URL: https://www.wintips.org/fix-windows-defender-feature-installation-failed-source-files-could-not-be-found-in-server-2016/. Click or tap if you trust this link.")

    Please Note: This response contains links to third parties, which we provide for convenience of reference, and Microsoft cannot guarantee the validity of any information and content in this link.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.