Use wildcards

You can use DOS-style wildcard characters, such as ? (question mark) and * (asterisk), in policies that refer to files (for example, file inclusion and exclusion lists). The ? (question mark) matches a single character. The * (asterisk) matches zero or more characters.

As of Profile Management 7.15, you can use the vertical bar ‘|’ for applying a policy to only the current folder without propagating it to the subfolders.

Wildcards work recursively. Ensure that you specify a valid path when using wildcards.

Policies that support wildcards do not support any other type of processing, such as the use of environment variables or Active Directory attributes. You cannot use wildcards in policies that refer to folders or registry entries.

Examples

The wildcard <path name>\h*.txt matches house.txt, h.txt, and house.txt.txt, but does not match ah.txt.

The wildcard <path name>\a?c.txt matches abc.txt, but does not match ac.txt.

The wildcard <path name>\a?c*d.txt matches abcd.txt and abccd.txt, but does not match acd.txt.

Configuring policies in profile root folder: *.txt specifies all files with the extension .txt in the root folder and subfolders.

*h.txt specifies all files that match this wildcard in the root folder and subfolders.

h*.txt specifies all files that match this wildcard in the root folder and its subfolders.

a?c.txt specifies all files that match this wildcard in the root folder and its subfolders.

*.txt| specifies all files with the extension .txt in the root folder without propagating it to the subfolders.

Configuring policies in profile non-root folders:

  • Examples for a file name part starts with * or ?

    AppData\*.txt specifies all files that match this wildcard in the directory AppData and its subfolders.

    AppData\*h.txt specifies all files that match this wildcard in the directory AppData and its subfolders.

  • Examples for a file name part not starting with * or ?

    AppData\h*.txt specifies all files that match this wildcard in the directory AppData without propagating it to the subfolders.

    AppData\a?c.txt specifies all files that match this wildcard in the directory AppData without propagating it to the subfolders.

    Note: As of Profile Management 7.15, such configuration is applied to not only the current folder but also the subfolders. For example, AppData\h*.txt specifies all files that match this wildcard in the directory AppData and its subfolders.

Use wildcards

In this article