Support Required – Unable to Remove Windows Defender on Windows Server 2016

PRAJEESH K 0 Reputation points
2026-11-24T06:13:00.1966667+00:00

Hi Team,

We need your support to remove Windows Defender from a Windows Server 2016 machine.

We tried removing the Windows Defender feature using the below PowerShell command:

Uninstall-WindowsFeature -Name Windows-Defender

However, the operation is failing with error 0x80073701 – “The referenced assembly could not be found.”

Could you please guide us on resolving this issue and safely removing Windows Defender from the server?

I have attached the error screenshot for reference.

Thanks & Regards,

Prajeesh K

Microsoft Security | Microsoft Defender | Other
0 comments No comments

1 answer

Sort by: Newest
  1. AI answer

    2026-11-24T06:13:59.11+00:00

    Repair the Windows component store first, then remove both the Windows-Defender and Windows-Defender-Gui features required for Windows Server 2016.

    Error 0x80073701 means a referenced side-by-side assembly is missing and typically indicates a component left partially installed in the component store; retrying the same feature-removal command before repairing that store will continue to fail.^1^

    1. Repair the component store

    Schedule a maintenance window and ensure another antivirus product is installed and operational before removing Defender if this server requires continuous malware protection.

    Open Command Prompt as administrator, then run:

    DISM.exe /Online /Cleanup-Image /ScanHealth
    DISM.exe /Online /Cleanup-Image /RestoreHealth
    SFC.exe /Scannow
    

    RestoreHealth normally obtains replacement files through Windows Update. These repair steps apply to Windows Server 2016 and later.^2^

    Expected results:

    • DISM reports The restore operation completed successfully.
    • SFC reports either no integrity violations or that damaged files were repaired.

    Restart the server after both commands finish.

    2. Remove both Windows Server 2016 Defender features

    After the restart, open PowerShell as administrator and check the current feature state before changing it:

    Get-WindowsFeature Windows-Defender*
    

    Then remove the antivirus engine and its GUI component:

    Uninstall-WindowsFeature Windows-Defender
    Uninstall-WindowsFeature Windows-Defender-Gui
    Restart-Computer
    

    Windows Server 2016 requires removal of both features, whereas the command you already attempted addressed only Windows-Defender. Manually changing Defender service or driver startup types is not supported.^3^

    After rebooting, verify the feature state:

    Get-WindowsFeature Windows-Defender*
    Get-Service WinDefend,WdNisSvc -ErrorAction SilentlyContinue
    

    The Defender features should show as not installed. Defender services might be absent after successful removal.

    If DISM cannot repair the store

    If RestoreHealth reports that source files cannot be found, use a known-good Windows repair source that matches the same operating-system version. Microsoft documents using another matching Windows installation as follows:^2^

    DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:\\ServerName\c$\Windows /LimitAccess
    SFC.exe /Scannow
    

    Replace ServerName with the matching repair-source server. Restart afterward, and then run the two Defender feature-removal commands.

    If this also fails:

    1. Review %windir%\Logs\CBS\CBS.log for missing package, manifest, or payload entries. DISM records detected and repaired component-store problems there.^2^
    2. Do not manually delete files from WinSxS or alter Defender service/driver startup types.
    3. For persistent servicing corruption, collect the CBS and DISM logs and open a Microsoft Support case. An in-place repair upgrade is the documented escalation path for repeated servicing corruption when normal repair does not succeed.^4^

    If the non-Microsoft antivirus is later removed, reinstall or re-enable Defender so the server is not left without antivirus protection.^3^


    References

    1. Windows Update common errors and mitigation
    2. Fix Windows Update corruptions and installation failures
    3. Microsoft Defender Antivirus and non-Microsoft antivirus solutions without Defender for Endpoint
    4. Troubleshoot Windows Update error 0x80004004
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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