You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: defender-endpoint/configure-process-opened-file-exclusions-microsoft-defender-antivirus.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.collection:
15
15
- tier2
16
16
- mde-ngp
17
17
search.appverid: met150
18
-
ms.date: 03/19/2024
18
+
ms.date: 04/07/2025
19
19
---
20
20
21
21
@@ -45,7 +45,7 @@ This article describes how to configure exclusion lists.
45
45
|Any file on the machine that is opened by any process under a specific folder|Specifying `c:\test\sample\*` would exclude files opened by: <p> `c:\test\sample\test.exe` <p> `c:\test\sample\test2.exe` <p> `c:\test\sample\utility.exe`|
46
46
|Any file on the machine that is opened by a specific process in a specific folder|Specifying `c:\test\process.exe` would exclude files only opened by `c:\test\process.exe`|
47
47
48
-
When you add a process to the process exclusion list, Microsoft Defender Antivirus won't scan files opened by that process, no matter where the files are located. The process itself, however, will be scanned unless it has also been added to the [file exclusion list](configure-extension-file-exclusions-microsoft-defender-antivirus.md).
48
+
When you add a process to the process exclusion list, Microsoft Defender Antivirus won't scan files opened by that process, no matter where the files are located. The process itself, however, is scanned unless it's added to the [file exclusion list](configure-extension-file-exclusions-microsoft-defender-antivirus.md).
49
49
50
50
The exclusions only apply to [always-on real-time protection and monitoring](configure-real-time-protection-microsoft-defender-antivirus.md). They don't apply to scheduled or on-demand scans.
51
51
@@ -60,15 +60,15 @@ By default, local changes made to the lists (by users with administrator privile
60
60
You can [configure how locally and globally defined exclusions lists are merged](configure-local-policy-overrides-microsoft-defender-antivirus.md#merge-lists) to allow local changes to override managed deployment settings.
61
61
62
62
> [!NOTE]
63
-
> **Network Protection** and **Attack surface reduction rules** are directly impacted by process exclusions on all platforms, meaning that a process exclusion on any OS (Windows, MacOS, Linux) will result in Network Protection or ASR being unable to inspect traffic or enforce rules for that specific process.
63
+
> **Network Protection** and **Attack surface reduction rules** are directly impacted by process exclusions on all platforms, meaning that a process exclusion on any OS (Windows, macOS, Linux) results in Network Protection or ASR being unable to inspect traffic or enforce rules for that specific process.
64
64
65
65
### Image name vs full path for process exclusions
66
66
67
-
Two different types of process exclusions may be set. A process may be excluded by image name, or by full path. The image name is simply the file name of the process, without the path.
67
+
Two different types of process exclusions might be set. A process might be excluded by image name, or by full path. The image name is simply the file name of the process, without the path.
68
68
69
69
For example, given the process `MyProcess.exe` running from `C:\MyFolder\` the full path to this process would be `C:\MyFolder\MyProcess.exe` and the image name is `MyProcess.exe`.
70
70
71
-
Image name exclusions are much more broad - an exclusion on `MyProcess.exe` excludes any processes with this image name, regardless of the path they're run from. So for example, if the process `MyProcess.exe` is excluded by image name, it will also be excluded if it is run from `C:\MyOtherFolder`, from removable media, et cetera. As such it's recommended that whenever possible, the full path is used.
71
+
Image name exclusions are much more broad - an exclusion on `MyProcess.exe` excludes any processes with this image name, regardless of the path they're run from. So for example, if the process `MyProcess.exe` is excluded by image name, it will also be excluded if it's run from `C:\MyOtherFolder`, from removable media, et cetera. As such it's recommended that whenever possible, the full path is used.
72
72
73
73
### Use wildcards in the process exclusion list
74
74
@@ -88,7 +88,7 @@ The following table describes how the wildcards can be used in the process exclu
88
88
89
89
### Contextual Process Exclusions
90
90
91
-
A process exclusion may also be defined via a [Contextual exclusion](configure-contextual-file-folder-exclusions-microsoft-defender-antivirus.md) allowing, for example, a specific file to be excluded only if it's opened by a specific process.
91
+
A process exclusion might also be defined via a [Contextual exclusion](configure-contextual-file-folder-exclusions-microsoft-defender-antivirus.md) allowing, for example, a specific file to be excluded only if it's opened by a specific process.
92
92
93
93
## Configure the list of exclusions for files opened by specified processes
94
94
@@ -98,26 +98,26 @@ For more information, see [Configure device restriction settings in Microsoft In
98
98
99
99
### Use Microsoft Configuration Manager to exclude files that have been opened by specified processes from scans
100
100
101
-
See [How to create and deploy antimalware policies: Exclusion settings](/configmgr/protect/deploy-use/endpoint-antimalware-policies#exclusion-settings) for details on configuring Microsoft Configuration Manager (current branch).
101
+
See [How to create and deploy anti-malware policies: Exclusion settings](/configmgr/protect/deploy-use/endpoint-antimalware-policies#exclusion-settings) for details on configuring Microsoft Configuration Manager (current branch).
102
102
103
103
### Use Group Policy to exclude files that have been opened by specified processes from scans
104
104
105
-
1. On your Group Policy management computer, open the [Group Policy Management Console](/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731212(v=ws.11)), right-click the Group Policy Object you want to configure and click**Edit**.
105
+
1. On your Group Policy management computer, open the [Group Policy Management Console](/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731212(v=ws.11)). Right-click the Group Policy Object you want to configure and select**Edit**.
106
106
107
-
2. In the **Group Policy Management Editor**, go to **Computer configuration** and click**Administrative templates**.
107
+
2. In the **Group Policy Management Editor**, go to **Computer configuration** and select**Administrative templates**.
108
108
109
109
3. Expand the tree to **Windows components \> Microsoft Defender Antivirus \> Exclusions**.
110
110
111
111
4. Double-click **Process Exclusions** and add the exclusions:
112
112
1. Set the option to **Enabled**.
113
-
2. Under the **Options** section, click**Show...**.
113
+
2. Under the **Options** section, select**Show...**.
114
114
3. Enter each process on its own line under the **Value name** column. See the example table for the different types of process exclusions. Enter **0** in the **Value** column for all processes.
115
115
116
-
5.Click**OK**.
116
+
5.Select**OK**.
117
117
118
118
### Use PowerShell cmdlets to exclude files that have been opened by specified processes from scans
119
119
120
-
Using PowerShell to add or remove exclusions for files that have been opened by processes requires using a combination of three cmdlets with the `-ExclusionProcess` parameter. The cmdlets are all in the [Defender module](/powershell/module/defender/).
120
+
Using PowerShell to add or remove exclusions for files that are opened by processes requires using a combination of three cmdlets with the `-ExclusionProcess` parameter. The cmdlets are all in the [Defender module](/powershell/module/defender/).
121
121
122
122
The format for the cmdlets is:
123
123
@@ -134,7 +134,7 @@ The following are allowed as the \<cmdlet\>:
134
134
|Remove items from the list|`Remove-MpPreference`|
135
135
136
136
> [!IMPORTANT]
137
-
> If you have created a list, either with `Set-MpPreference` or `Add-MpPreference`, using the `Set-MpPreference` cmdlet again overwrites the existing list.
137
+
> If you create a list, with either `Set-MpPreference` or `Add-MpPreference`, using the `Set-MpPreference`, cmdlet overwrites the existing list.
138
138
139
139
For example, the following code snippet would cause Microsoft Defender Antivirus scans to exclude any file that is opened by the specified process:
0 commit comments