Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 1.68 KB

uwf-registryfilteraddexclusion.md

File metadata and controls

67 lines (50 loc) · 1.68 KB
title description MSHAttr ms.assetid author ms.author ms.service ms.subservice ms.date ms.topic
UWF_RegistryFilter.AddExclusion
UWF_RegistryFilter.AddExclusion
PreferredSiteName:MSDN
PreferredLib:/library/windows/hardware
65eba07c-1ef4-426c-8741-b9ec31817768
TerryWarwick
twarwick
windows-iot
iot
05/20/2024
article

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 Home No
Windows Pro No
Windows Enterprise Yes
Windows Education Yes
Windows IoT Enterprise Yes

Related topics