UWF_RegistryFilter.AddExclusion

Adds a registry key to the registry exclusion list for Unified Write Filter (UWF).

Important

Only registry subkeys under the following registry keys can be added to the exclusion list.

  • HKEY_LOCAL_MACHINE\BCD00000000
  • HKEY_LOCAL_MACHINE\SYSTEM
  • HKEY_LOCAL_MACHINE\SOFTWARE
  • HKEY_LOCAL_MACHINE\SAM
  • HKEY_LOCAL_MACHINE\SECURITY
  • HKEY_LOCAL_MACHINE\COMPONENTS

Important

Excluding a registry key from filtering also excludes all subkeys from filtering.

Syntax

UInt32 AddExclusion(
    string RegistryKey
);

Parameters

RegistryKey A string that contains the full path of the registry key.

Return Value

Returns an HRESULT value that indicates WMI status or a WMI error.

Remarks

You must restart the device before the registry key is excluded from UWF filtering.

Requirements

Windows Edition Supported
Windows 10 Home No
Windows 10 Pro No
Windows 10 Enterprise Yes
Windows 10 Education Yes

UWF_RegistryFilter

Unified Write Filter