Windows wildcard exclusion examples for Memory Protection Skip Navigation

Windows wildcard exclusion examples for Memory Protection

The examples below are based on the following path: C:\Application\TestApp\MyApp\program.exe
You can also use relative paths.
Type
Description
Correct use of exclusions
Relative path exclusion without any wildcards:
\Application\TestApp\MyApp\program.exe
Exclude program.exe as long as program.exe is located under "MyApp" child directory in C: drive:
C:\Application\**\MyApp\program.exe
Exclude any .exe extension file as long as the executable is located under "MyApp" child directory in C: drive
:
C:\Application\**\MyApp\*.exe
Exclude any executable as long as the executable is located under "MyApp" child directory in C: drive:
C:\Application\**\MyApp\*
Exclude program.exe as long as program.exe is located under any child directory that belongs to "TestApp" parent directory in C: drive:
C:\Application\TestApp\**\program.exe
Exclude program.exe as long as program.exe is located under \Application\TestApp\MyApp\ in C: drive:
C:\**\Application\TestApp\MyApp\program.exe
Exclude any .exe extension file as long as the executable is located under \Application\TestApp\MyApp\ in C: drive:
C:\**\Application\TestApp\MyApp\*.exe
Exclude any executable as long as the executable is located under \Application\TestApp\MyApp\ in C: drive
C:\**\Application\TestApp\MyApp\*
Incorrect use of exclusions
Avoid using a double asterisk (**) for the following:
  • Executable names: A single asterisk (*) should be used.
    • Incorrect:
      C:\Application\TestA**.exe
    • Correct:
      C:\Application\TestA*.exe
  • End of an exclusion. The double asterisk (**) can’t be the end of the exclusion.
    • Incorrect:
       C:\Application\**
    • Correct:
      C:\Application\**\*
  • Relative paths. The double asterisk (**) cannot be used with relative paths.
    • Incorrect:
      **\Application\
With agent 1560 and 1564, do not end an exclusion with \**; this can result in a Windows restart loop. Read this Agent 1560 knowledge base article for more information.
Exclusions that are not recommended
Avoid using a double asterisk (**) after a drive letter. Although this exclusion is technically correct, it would exclude anything in any directory (including child directories) under the C: drive.
C:\**\*