Use wildcards in protection settings folder exclusions Skip Navigation

Use wildcards in protection settings folder exclusions

For all operating systems, the following special character is supported:
  • Asterisk (*)
Pattern syntax for * wildcards
Character
Meaning
*
Matches one or more characters, except platform-specific path separator ('\')
Used to:
Exclude folders and to represent a prefix or suffix for a folder name. Multiple wildcards are allowed in an exclusion path.
  • At this time, "*" escaping is not supported. For example, you cannot exclude a folder that contains an asterisk "*" in the folder name. Note:
  • At this time, a wildcard cannot be used to represent a drive letter. This functionality will be added at a later time. This section will be updated once that functionality is in place.
  • Previous folder exclusion functionality still applies. This means that exclusions will also apply to any child folders.
Examples
For the following path:
C:\Application\TestFolder1\MyApp\program.exe 
Examples of Correct Exclusions:
  • C:\Application\TestFolder1\MyApp\
    Exclusion without any wildcards.
  • C:\Application\*\MyApp\
    A wildcard is used to represent all parent folders of the "MyApp" child folder
  • C:\Application\*Folder1\MyApp\
    The wildcard for "*Folder1" specifies that there is a prefix "Test" for this folder for the Agent to compare against.
  • C:\Application\TestFolder*\MyApp\
    The wildcard for "TestFolder*" specifies that there is a suffix "1" for this folder for the Agent to compare against.
  • C:\Application\*Folder*\MyApp\
    The wildcard for "*Folder*" specifies that there is a prefix "Test" and a suffix "1" for this folder for the Agent to compare against.
  • C:\Application\*Folder*\My*\
    The wildcard for "*Folder*" specifies that there is a prefix "Test" and a suffix "1" for this folder for the Agent to compare against.
  • C:\Application\*\
    This exclusion would exclude all folders under "Application". *\Application\*\ This exclusion would exclude all folders under "Application" for all drives.
  • *\Application\*Folder*\MyApp\
    The wildcard for "*Folder*" specifies that there is a prefix "Test" and a suffix "1" for this folder for the Agent to compare against, and  would also exclude for all drives.
Example of Incorrect Exclusions:
  •   C:\Application\TestFolder1\MyApp\*.exe
    The "*" cannot be used for executables, only for folders or directories.
  • C:\Application\**
    The "**" is not a valid usage of wildcards for folder exclusions, use a single "*" asterisk.
Not Recommended Exclusions:
  • Correct (but not recommended): C:\*
    Would effectively exclude anything in any directory (including child directories) under the C: drive.