Product Documentation

To include and exclude items

May 22, 2017

As a prerequisite, ensure that you understand how inclusions and exclusions work. For information on this, see Include and exclude items. For information on the default included and excluded items, see Default inclusions and exclusions.

Use Enter to separate multiple entries when you include and exclude items.

To include items

Tips: If desired, you can include specific top-level folders. In a collaborative environment, this has the advantage of signaling critical folders to other administrators.
  1. Under Profile Management > Registry, double-click the Inclusion list policy.
  2. Select Enabled.
  3. Add any profile-related registry keys in the HKCU hive that you want to be processed during logoff. Example: Software\Adobe.
  4. Under Profile Management > File system > Synchronization, double-click the Directories to synchronize policy.
  5. Select Enabled.
  6. Add any folders that you want Profile Management to process but that are located in excluded folders.

    Profile Management synchronizes each user's entire profile between the system it is installed on and the user store. It is not necessary to include subfolders of the user profile by adding them to this list. Paths on this list can be absolute or relative. Relative paths are interpreted as being relative to the user profile. Example:

    • Desktop\exclude\include. Ensures that the subfolder called include is synchronized even if the folder called Desktop\exclude is not.
  7. Under Profile Management > File system > Synchronization, double-click the Files to synchronize policy.
  8. Select Enabled.
  9. Profile Management synchronizes each user's entire profile between the system it is installed on and the user store. It is not necessary to include files in the user profile by adding them to this list.

    This setting allows for the inclusion of files below excluded folders. Paths on this list can be absolute or relative. Relative paths are interpreted as being relative to the user profile. Wildcards can be used but are only allowed for file names. Wildcards cannot be nested and are applied recursively. Examples:

    • AppData\Local\Microsoft\Office\Access.qat. Specifies a file below a folder that is excluded in the default configuration.
    • AppData\Local\MyApp\*.cfg. Specifies all files with the extension .cfg in the profile folder AppData\Local\MyApp and its subfolders.

If Inclusion list is not configured here, the value from the .ini file is used. If this setting is not configured here or in the .ini file, all of the HKCU hive is processed.

If Directories to synchronize is not configured here, the value from the .ini file is used. If this setting is not configured here or in the .ini file, only non-excluded folders in the user profile are synchronized. Disabling this setting has the same effect as enabling it and configuring an empty list.

If Files to synchronize is not configured here, the value from the .ini file is used. If this setting is not configured here or in the .ini file, only non-excluded files in the user profile are synchronized. Disabling this setting has the same effect as enabling it and configuring an empty list.

For your changes to take effect, run the gpupdate /force command from the command prompt as documented at http://technet.microsoft.com/en-us/library/bb490983.aspx.

To exclude items

  1. Under Profile Management > Registry, click the Exclusion list policy.
  2. Select Enabled.
  3. Click Show and add any registry keys in the HKCU hive that you do not want to be processed during logoff. Example: Software\Policies.
  4. Under Profile Management > File system, double-click the Exclusion list - directories policy.
  5. Select Enabled.
  6. Add any folders that you do not want Profile Management to process. Folder names can be specified as absolute paths or as paths relative to the user profile (%USERPROFILE%). Use that variable to locate the profile but do not enter the variable itself in this policy. Omit initial backslashes from paths.

    Examples:

    • Desktop. Does not process the Desktop folder in the user profile.
    • MyApp\tmp. Does not process the folder %USERPROFILE%\MyApp\tmp.
  7. Under Profile Management > File system, double-click the Exclusion list - files policy.
  8. Select Enabled.
  9. Add any files that you do not want Profile Management to process. File names can be specified as absolute paths or as paths relative to the user profile (%USERPROFILE%). Use that variable to locate the profile but do not enter the variable itself in this policy. Wildcards are allowed and are applied recursively.

    Examples:

    • *.tmp ignores all temp files in %USERPROFILE%.
    • appData\roaming\MyUnwantedApp*.tmp ignores all files with the extension .tmp in %USERPROFILE% for the specified application.

If Exclusion list is disabled, no registry keys are excluded. If this setting is not configured here, the value from the .ini file is used. If this setting is not configured here or in the .ini file, no registry keys are excluded.

If Exclusion list - directories is disabled, no folders are excluded. If this setting is not configured here, the value from the .ini file is used. If this setting is not configured here or in the .ini file, no folders are excluded.

If Exclusion list - files is disabled, no files are excluded. If this setting is not configured here, the value from the .ini file is used. If this setting is not configured here or in the .ini file, no files are excluded.

For your changes to take effect, run the gpupdate /force command from the command prompt as documented at http://technet.microsoft.com/en-us/library/bb490983.aspx.