大网数据广告活动
性能与资源

Windows startup hangs after you exclude UWF from Microsoft Defender

· 52CE 我爱测

Discusses how to work around an issue in which Windows doesn't start after you exclude the UWF feature from Microsoft Defender.

This article discusses how to work around an issue in which Windows doesn't start after you exclude Unified Write Filter (UWF) from Microsoft Defender.

Applies to:   Windows 10 Enterprise, Windows 10 IoT Enterprise or Windows 11 Enterprise

Issue

Consider the following scenario:

  • You enable the UWF feature on a Windows 11 Enterprise-based, Windows 10 Enterprise-based, or Windows 10 IoT Enterprise-based computer.
  • You configure a UWF registry exclusion for Windows Defender. Specifically, the following registry key is excluded from the write filter:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdFilter

In this scenario, the computer stops responding during Windows startup.

Note:

  • If you disable the UWF feature by using the uwfmgr.exe filter disable command, the issue doesn't occur.
  • The computer might start up after several retries.

This behavior is by design. To work around this issue, use an alternative menthod to exclude UWF.

Supported method to exclude UWF

To work around this issue, you can use the Registry Commit option for Uwfmgr.exe to exclude UWF. This option can commit changes to specify a value.

The following command can commit changes of a specified registry value:

uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" Start

Note: Because the command can specify only a single registry value, you must specify the whole registry value for the registry keys where you want to commit changes.

For example, you find registry values that resemble the values in the following screenshot.

To commit all the changes that are made under the WDFilter registry subkeys, you have to run the Registry Commit option, as follows:

uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" DependOnService
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" Description
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" DisplayName
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" ErrorControl
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" Group
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" ImagePath
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" Start
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" SupportedFeatures
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" Type
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter\Instances" DefaultInstance
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter\Instances\WdFilter Instance" Altitude
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter\Instances\WdFilter Instance" Flags
uwfmgr.exe registry commit "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter\Security" Security

Note: The Registry Commit option is a one-shot operation. It doesn't continue to bypass the write filter by running a single command. To make value changes commit whenever your computer shuts down, you must add this command set to the shutdown script.

For more inform about the shutdown script, see Working with startup, shutdown, logon, and logoff scripts using the Local Group Policy Editor.

More information

To check whether WDFilter registry keys are excluded from the UWF registry filter, open a Command Prompt window as an administrator, and then run uwfmgr.exe get-config at the prompt.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。