Remove Windows Defender from Server 2016

This article was posted more than 1 year ago. Please keep in mind that the information on this page may be outdated, insecure, or just plain wrong today.

I have my own security software I use on Windows Server operating systems and take out Windows Defender.  Normally, I can do this through Feature removal, but the option to remove Windows Defender was unable to be removed from the manager.
width=678
To remove, I used Powershell.

Remove-WindowsFeature Windows-Defender, Windows-Defender-GUI

width=655

#powershell