TestimoX

API Reference

Class

WindowsDefender

Namespace ComputerX.Security
Assembly ComputerX
Modifiers static
Attributes
SupportedOSPlatform("windows")

Queries Windows Defender status information.

Inheritance

  • Object
  • WindowsDefender

Methods

public static WindowsDefenderStatus Query(String computerName = null) #
Returns: WindowsDefenderStatus

Queries Defender health and preference summary for a computer.

Parameters

computerName System.String = null optionalposition: 0
SetMapsReporting 2 overloads
public static Boolean SetMapsReporting(MapsReportingLevel level, String computerName = null) #
Returns: Boolean

Sets MAPS reporting level (0=Disabled, 1=Basic, 2=Advanced). Returns true on success.

Parameters

level System.Int32 requiredposition: 0
computerName System.String = null optionalposition: 1
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 required
computerName System.String required
public static Boolean SetRealtimeProtectionEnabled(Boolean enabled, String computerName = null) #
Returns: Boolean

Enable or disable Windows Defender real-time protection (local or remote). Requires administrative rights. On success returns true.

Parameters

enabled System.Boolean requiredposition: 0
computerName System.String = null optionalposition: 1
SetSubmitSamplesConsent 2 overloads
public static Boolean SetSubmitSamplesConsent(SubmitSamplesConsentLevel level, String computerName = null) #
Returns: Boolean

Sets sample submission consent level (0..3). Returns true on success.

Parameters

level System.Int32 requiredposition: 0
computerName System.String = null optionalposition: 1
SetSubmitSamplesConsent(ComputerX.Security.SubmitSamplesConsentLevel level, System.String computerName) #

Sets sample submission consent with a typed enum.

Parameters

level ComputerX.Security.SubmitSamplesConsentLevel required
computerName System.String required
StartScan 2 overloads
public static Boolean StartScan(DefenderScanType type, String computerName = null) #
Returns: Boolean

Starts a Defender scan. scanType: 1 = Quick, 2 = Full.

Parameters

scanType System.Int32 requiredposition: 0
computerName System.String = null optionalposition: 1
StartScan(ComputerX.Security.DefenderScanType type, System.String computerName) #

Starts a Defender scan with a typed enum.

Parameters

type ComputerX.Security.DefenderScanType required
computerName System.String required