Configuration |
Turn on/off antivirus in passive mode |
mdatp config passive-mode --value [enabled/disabled] |
Configuration |
Turn on/off real-time protection |
mdatp config real-time-protection --value [enabled/disabled] |
Configuration |
Turn on/off behavior monitoring |
mdatp config behavior-monitoring --value [enabled/disabled] |
Configuration |
Turn on/off cloud protection |
mdatp config cloud --value [enabled/disabled] |
Configuration |
Turn on/off product diagnostics |
mdatp config cloud-diagnostic --value [enabled/disabled] |
Configuration |
Turn on/off automatic sample submission |
mdatp config cloud-automatic-sample-submission --value [enabled/disabled] |
Configuration |
Turn on/audit/off PUA protection |
mdatp threat policy set --type potentially_unwanted_application -- action [block/audit/off |
Configuration |
Add/remove an antivirus exclusion for a process |
mdatp exclusion process [add/remove] --path [path-to-process] or mdatp exclusion process [add\|remove] --name [process-name] |
Configuration |
Add/remove an antivirus exclusion for a file |
mdatp exclusion file [add/remove] --path [path-to-file] |
Configuration |
Add/remove an antivirus exclusion for a directory |
mdatp exclusion folder [add/remove] --path [path-to-directory] |
Configuration |
Add/remove an antivirus exclusion for a file extension |
mdatp exclusion extension [add/remove] --name [extension] |
Configuration |
List all antivirus exclusions |
mdatp exclusion list |
Configuration |
Configure degree of parallelism for on-demand scans |
mdatp config maximum-on-demand-scan-threads --value [numerical-value-between-1-and-64] |
Configuration |
Turn on/off scans after security intelligence updates |
mdatp config scan-after-definition-update --value [enabled/disabled] |
Configuration |
Turn on/off archive scanning (on-demand scans only) |
mdatp config scan-archives --value [enabled/disabled] |
Configuration |
Turn on/off file hash computation |
mdatp config enable-file-hash-computation --value [enabled/disabled] |
Protection |
Scan a path |
mdatp scan custom --path [path] [--ignore-exclusions] |
Protection |
Do a quick scan |
mdatp scan quick |
Protection |
Do a full scan |
mdatp scan full |
Protection |
Cancel an ongoing on-demand scan |
mdatp scan cancel |
Protection |
Request a security intelligence update |
mdatp definitions update |
Configuration |
Add a threat name to the allowed list |
mdatp threat allowed add --name [threat-name] |
Configuration |
Remove a threat name from the allowed list |
mdatp threat allowed remove --name [threat-name] |
Configuration |
List all allowed threat names |
mdatp threat allowed list |
Protection history |
Print the full protection history |
mdatp threat list |
Protection history |
Get threat details |
mdatp threat get --id [threat-id] |
Quarantine management |
List all quarantined files |
mdatp threat quarantine list |
Quarantine management |
Remove all files from the quarantine |
mdatp threat quarantine remove-all |
Quarantine management |
Add a file detected as a threat to the quarantine |
mdatp threat quarantine add --id [threat-id] |
Quarantine management |
Remove a file detected as a threat from the quarantine |
mdatp threat quarantine remove --id [threat-id] |
Quarantine management |
Restore a file from the quarantine. Available in Defender for Endpoint version before 101.23092.0012. |
mdatp threat quarantine restore --id [threat-id] --path [destination-folder] |
Quarantine management |
Restore a file from the quarantine with Threat ID. Available in Defender for Endpoint version 101.23092.0012 or later. |
mdatp threat restore threat-id --id [threat-id] --destination-path [destination-folder] |
Quarantine management |
Restore a file from the quarantine with Threat Original Path. Available in Defender for Endpoint version 101.23092.0012 or later. |
mdatp threat restore threat-path --path [threat-original-path] --destination-path [destination-folder] |
Network Protection Configuration |
Configure the Network Protection enforcement level |
mdatp config network-protection enforcement-level --value [Block/Audit/Disabled] |
Network Protection management |
Check Network protection was started successfully |
mdatp health --field network_protection_status |
Device Control management |
Is Device Control enabled, and what is the Default Enforcement? |
mdatp device-control policy preferences list |
Device Control management |
What Device Control policy is enabled? |
mdatp device-control policy rules list |
Device Control management |
What Device Control policy groups are enabled? |
mdatp device-control policy groups list |
Configuration |
Turn on/off data loss prevention |
mdatp config data_loss_prevention --value [enabled/disabled] |
Diagnostics |
Change the log level |
mdatp log level set --level [error/warning/info/verbose] |
Diagnostics |
Generate diagnostic logs |
mdatp diagnostic create --path [directory] |
Health |
Check the product's health |
mdatp health |
Health |
Check for a specific product attribute |
mdatp health --field [attribute: healthy/licensed/engine_version...] |
EDR |
EDR list exclusions (root) |
mdatp edr exclusion list [processes|paths|extensions|all] |
EDR |
Set/Remove tag, only GROUP supported |
mdatp edr tag set --name GROUP --value [name] |
EDR |
Remove group tag from device |
mdatp edr tag remove --tag-name [name] |
EDR |
Add Group ID |
mdatp edr group-ids --group-id [group] |