mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-16 15:27:22 +00:00
update to new cli
This commit is contained in:
parent
751e8eb8c0
commit
b99989dd56
@ -30,36 +30,31 @@ If you can reproduce a problem, increase the logging level, run the system for s
|
|||||||
1. Increase logging level:
|
1. Increase logging level:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mdatp --log-level verbose
|
mdatp log level set --level verbose
|
||||||
```
|
```
|
||||||
|
|
||||||
```Output
|
```Output
|
||||||
Creating connection to daemon
|
Log level configured successfully
|
||||||
Connection established
|
|
||||||
Operation succeeded
|
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Reproduce the problem
|
2. Reproduce the problem
|
||||||
|
|
||||||
3. Run `sudo mdatp --diagnostic --create` to back up Microsoft Defender ATP's logs. The files will be stored inside a .zip archive. This command will also print out the file path to the backup after the operation succeeds.
|
3. Run `sudo mdatp diagnostic create` to back up Microsoft Defender ATP's logs. The files will be stored inside a .zip archive. This command will also print out the file path to the backup after the operation succeeds.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mdatp --diagnostic --create
|
sudo mdatp diagnostic create
|
||||||
```
|
```
|
||||||
```Output
|
```Output
|
||||||
Creating connection to daemon
|
Diagnostic file created: "/Library/Application Support/Microsoft/Defender/wdavdiag/932e68a8-8f2e-4ad0-a7f2-65eb97c0de01.zip"
|
||||||
Connection established
|
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Restore logging level:
|
4. Restore logging level:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mdatp --log-level info
|
mdatp log level set --level info
|
||||||
```
|
```
|
||||||
```Output
|
```Output
|
||||||
Creating connection to daemon
|
Log level configured successfully
|
||||||
Connection established
|
|
||||||
Operation succeeded
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Logging installation issues
|
## Logging installation issues
|
||||||
@ -86,29 +81,31 @@ There are several ways to uninstall Microsoft Defender ATP for Mac. Note that wh
|
|||||||
Important tasks, such as controlling product settings and triggering on-demand scans, can be done from the command line:
|
Important tasks, such as controlling product settings and triggering on-demand scans, can be done from the command line:
|
||||||
|
|
||||||
|Group |Scenario |Command |
|
|Group |Scenario |Command |
|
||||||
|-------------|-------------------------------------------|-----------------------------------------------------------------------|
|
|-------------|-------------------------------------------|----------------------------------------------------------------------------------|
|
||||||
|Configuration|Turn on/off real-time protection |`mdatp --config realTimeProtectionEnabled [true/false]` |
|
|Configuration|Turn on/off real-time protection |`mdatp config real-time-protection [enabled/disabled]` |
|
||||||
|Configuration|Turn on/off cloud protection |`mdatp --config cloudEnabled [true/false]` |
|
|Configuration|Turn on/off cloud protection |`mdatp config cloud --value [enabled/disabled]` |
|
||||||
|Configuration|Turn on/off product diagnostics |`mdatp --config cloudDiagnosticEnabled [true/false]` |
|
|Configuration|Turn on/off product diagnostics |`mdatp config cloud-diagnostic --value [enabled/disabled]` |
|
||||||
|Configuration|Turn on/off automatic sample submission |`mdatp --config cloudAutomaticSampleSubmission [true/false]` |
|
|Configuration|Turn on/off automatic sample submission |`mdatp config cloud-automatic-sample-submission --value [enabled/disabled]` |
|
||||||
|Configuration|Add a threat name to the allowed list |`mdatp threat allowed add --name [threat-name]` |
|
|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|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` |
|
|Configuration|List all allowed threat names |`mdatp threat allowed list` |
|
||||||
|Configuration|Turn on PUA protection |`mdatp --threat --type-handling potentially_unwanted_application block`|
|
|Configuration|Turn on PUA protection |`mdatp threat policy set --type potentially_unwanted_application -- action block` |
|
||||||
|Configuration|Turn off PUA protection |`mdatp --threat --type-handling potentially_unwanted_application off` |
|
|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 --type-handling potentially_unwanted_application audit`|
|
|Configuration|Turn on audit mode for PUA protection |`mdatp threat policy set --type potentially_unwanted_application -- action audit` |
|
||||||
|Configuration|Turn on/off passiveMode |`mdatp --config passiveMode [on/off]` |
|
|Configuration|Turn on/off passiveMode |`mdatp config passive-mode --value enabled [enabled/disabled]` |
|
||||||
|Diagnostics |Change the log level |`mdatp --log-level [error/warning/info/verbose]` |
|
|Diagnostics |Change the log level |`mdatp log level set --level [error/warning/info/verbose]` |
|
||||||
|Diagnostics |Generate diagnostic logs |`mdatp --diagnostic --create` |
|
|Diagnostics |Generate diagnostic logs |`mdatp diagnostic create` |
|
||||||
|Health |Check the product's health |`mdatp --health` |
|
|Health |Check the product's health |`mdatp health` |
|
||||||
|Protection |Scan a path |`mdatp --scan --path [path]` |
|
|Health |Check for a spefic product attribute |`mdatp health --field [attribute: healthy/licensed/engine_version...]` |
|
||||||
|Protection |Do a quick scan |`mdatp --scan --quick` |
|
|Protection |Scan a path |`mdatp scan custom --path [path]` |
|
||||||
|Protection |Do a full scan |`mdatp --scan --full` |
|
|Protection |Do a quick scan |`mdatp scan quick` |
|
||||||
|Protection |Cancel an ongoing on-demand scan |`mdatp --scan --cancel` |
|
|Protection |Do a full scan |`mdatp scan full` |
|
||||||
|Protection |Request a security intelligence update |`mdatp --definition-update` |
|
|Protection |Cancel an ongoing on-demand scan |`mdatp scan cancel` |
|
||||||
|EDR |Turn on/off EDR preview for Mac |`mdatp --edr --early-preview [true/false]` OR `mdatp --edr --earlyPreview [true/false]` for versions earlier than 100.78.0 |
|
|Protection |Request a security intelligence update |`mdatp definitions update` |
|
||||||
|EDR |Add group tag to device. EDR tags are used for managing device groups. For more information, please visit https://docs.microsoft.com/windows/security/threat-protection/microsoft-defender-atp/machine-groups |`mdatp --edr --set-tag GROUP [name]` |
|
|EDR |Turn on/off EDR preview for Mac |`mdatp edr early-preview [enabled/disabled]` |
|
||||||
|EDR |Remove group tag from device |`mdatp --edr --remove-tag [name]` |
|
|EDR |Add group tag to device. EDR tags are used for managing device groups. For more information, please visit https://docs.microsoft.com/windows/security/threat-protection/microsoft-defender-atp/machine-groups |`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]` |
|
||||||
|
|
||||||
### How to enable autocompletion
|
### How to enable autocompletion
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user