Add/remove/read exclusions on Windows Defender using C#. This requires Administrator Privilege.
WindowsDefenderHelper
class provides all features to add/remove/read exclusions on Windows Defender. It calls PowerShell internally.
Functions:
- IsUserAdministrator()
- GetExclusionPath()
- GetExclusionProcess()
- GetExclusionExtension()
- AddExclusionPath(string value)
- AddExclusionProcess(string value)
- AddExclusionExtension(string value)
- RemoveExclusionPath(string value)
- RemoveExclusionProcess(string value)
- RemoveExclusionExtension(string value)