This article is contributed. See the original author and article here.
LINUX Microsoft Defender ATP
CONFIGURATION OPERATION COMMANDs
Hello Blog Readers,
I summarize the Linux Configuration and Operation Command in this cheatsheet for the convenient use. Enjoy Linux ATP run!
_________________________________________________________
Linux ATP Commands
Group |
Scenario |
Command |
Configuration |
Turn on/off real-time protection |
mdatp config real-time-protection –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/off AV passive mode |
mdatp config passive-mode [enabled|disabled] |
Configuration |
Add/remove an antivirus exclusion for a file extension |
mdatp exclusion extension [add|remove] –name [extension] |
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 process |
mdatp exclusion process [add|remove] –path [path-to-process] |
Configuration |
List all antivirus exclusions |
mdatp exclusion list |
Configuration |
Turn on PUA (Potentially Unwanted Applications) protection |
mdatp threat policy set –type potentially_unwanted_application –action block |
Configuration |
Turn off PUA protection |
mdatp threat policy set –type potentially_unwanted_application –action off |
Configuration |
Turn on audit mode for PUA protection |
mdatp threat policy set –type potentially_unwanted_application –action audit |
Diagnostics |
Change the log level |
mdatp log level set –level verbose [error|warning|info|verbose] |
Diagnostics |
Generate diagnostic logs |
mdatp diagnostic create |
Health |
Check the product’s health |
mdatp health |
Protection |
Scan a path |
mdatp scan custom –path [path] |
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 |
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 add –id [threat-id] |
Quarantine management |
Restore a file from the quarantine |
mdatp threat quarantine add –id [threat-id] |
Examples:
- Enable ATP Diagnostric
mdatp config cloud-diagnostic –value enabled
Checking ATP Configuration Settings:
mdatp health
- Checking ATP Virus History
mdatp threat list
- To view the Quarantine list and remove the non-threat file based on threat ID
- To Audit PUA (Potentially Unwanted Applications)
- To update ATP Definition
More info:
I hope the command list are helpful.
Disclaimer The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.
Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.
Recent Comments