API Reference
Class
WindowsDefender
Queries Windows Defender status information.
Inheritance
- Object
- WindowsDefender
Methods
public static WindowsDefenderStatus Query(String computerName = null) #Returns:
WindowsDefenderStatusQueries Defender health and preference summary for a computer.
Parameters
- computerName System.String = null
SetMapsReporting 2 overloads
public static Boolean SetMapsReporting(MapsReportingLevel level, String computerName = null) #Returns:
BooleanSets MAPS reporting level (0=Disabled, 1=Basic, 2=Advanced). Returns true on success.
Parameters
- level System.Int32
- computerName System.String = null
SetMapsReporting(ComputerX.Security.MapsReportingLevel level, System.String computerName) #Sets MAPS reporting level using a typed enum. Returns true on success.
Parameters
- level ComputerX.Security.MapsReportingLevel
- computerName System.String
public static Boolean SetRealtimeProtectionEnabled(Boolean enabled, String computerName = null) #Returns:
BooleanEnable or disable Windows Defender real-time protection (local or remote). Requires administrative rights. On success returns true.
Parameters
- enabled System.Boolean
- computerName System.String = null
SetSubmitSamplesConsent 2 overloads
public static Boolean SetSubmitSamplesConsent(SubmitSamplesConsentLevel level, String computerName = null) #Returns:
BooleanSets sample submission consent level (0..3). Returns true on success.
Parameters
- level System.Int32
- computerName System.String = null
SetSubmitSamplesConsent(ComputerX.Security.SubmitSamplesConsentLevel level, System.String computerName) #Sets sample submission consent with a typed enum.
Parameters
- level ComputerX.Security.SubmitSamplesConsentLevel
- computerName System.String
StartScan 2 overloads
public static Boolean StartScan(DefenderScanType type, String computerName = null) #Returns:
BooleanStarts a Defender scan. scanType: 1 = Quick, 2 = Full.
Parameters
- scanType System.Int32
- computerName System.String = null
StartScan(ComputerX.Security.DefenderScanType type, System.String computerName) #Starts a Defender scan with a typed enum.
Parameters
- type ComputerX.Security.DefenderScanType
- computerName System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object