mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-17 07:47:22 +00:00
Merge pull request #3502 from MicrosoftDocs/macky-nixclean04
Cleaned up code boxes of $s
This commit is contained in:
commit
7eafd9a1e9
@ -64,7 +64,7 @@ For more information on how to configure exclusions from Puppet, Ansible, or ano
|
|||||||
Run the following command to see the available switches for managing exclusions:
|
Run the following command to see the available switches for managing exclusions:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mdatp exclusion
|
mdatp exclusion
|
||||||
```
|
```
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
@ -72,28 +72,36 @@ Examples:
|
|||||||
- Add an exclusion for a file extension:
|
- Add an exclusion for a file extension:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mdatp exclusion extension add --name .txt
|
mdatp exclusion extension add --name .txt
|
||||||
|
```
|
||||||
|
```Output
|
||||||
Extension exclusion configured successfully
|
Extension exclusion configured successfully
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add an exclusion for a file:
|
- Add an exclusion for a file:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mdatp exclusion file add --path /var/log/dummy.log
|
mdatp exclusion file add --path /var/log/dummy.log
|
||||||
|
```
|
||||||
|
```Output
|
||||||
File exclusion configured successfully
|
File exclusion configured successfully
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add an exclusion for a folder:
|
- Add an exclusion for a folder:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mdatp exclusion folder add --path /var/log/
|
mdatp exclusion folder add --path /var/log/
|
||||||
|
```
|
||||||
|
```Output
|
||||||
Folder exclusion configured successfully
|
Folder exclusion configured successfully
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add an exclusion for a process:
|
- Add an exclusion for a process:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mdatp exclusion process add --name cat
|
mdatp exclusion process add --name cat
|
||||||
|
```
|
||||||
|
```Output
|
||||||
Process exclusion configured successfully
|
Process exclusion configured successfully
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -104,7 +112,7 @@ You can validate that your exclusion lists are working by using `curl` to downlo
|
|||||||
In the following Bash snippet, replace `test.txt` with a file that conforms to your exclusion rules. For example, if you have excluded the `.testing` extension, replace `test.txt` with `test.testing`. If you are testing a path, ensure that you run the command within that path.
|
In the following Bash snippet, replace `test.txt` with a file that conforms to your exclusion rules. For example, if you have excluded the `.testing` extension, replace `test.txt` with `test.testing`. If you are testing a path, ensure that you run the command within that path.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl -o test.txt https://www.eicar.org/download/eicar.com.txt
|
curl -o test.txt https://www.eicar.org/download/eicar.com.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
If Microsoft Defender ATP for Linux reports malware, then the rule is not working. If there is no report of malware, and the downloaded file exists, then the exclusion is working. You can open the file to confirm that the contents are the same as what is described on the [EICAR test file website](http://2016.eicar.org/86-0-Intended-use.html).
|
If Microsoft Defender ATP for Linux reports malware, then the rule is not working. If there is no report of malware, and the downloaded file exists, then the exclusion is working. You can open the file to confirm that the contents are the same as what is described on the [EICAR test file website](http://2016.eicar.org/86-0-Intended-use.html).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user