在下次重新启动时启用 (UWF) 的统一写入筛选器。Enables Unified Write Filter (UWF) on the next restart.


UInt32 Enable();



返回值Return Value

返回一个 HRESULT 值,该值指示 wmi 状态wmi 错误Returns an HRESULT value that indicates WMI status or a WMI error.


必须使用管理员帐户来启用 UWF。You must use an administrator account to enable UWF.

在启用或禁用 UWF 之后,必须重新启动设备,更改才会生效。You must restart your device after you enable or disable UWF before the change takes effect.

第一次在设备上启用 UWF 时,UWF 对系统进行以下更改以提高 UWF 的性能:The first time you enable UWF on your device, UWF makes the following changes to your system to improve the performance of UWF:

  • 页面文件处于禁用状态。Paging files are disabled.
  • 系统还原处于禁用状态。System restore is disabled.
  • SuperFetch 已禁用。SuperFetch is disabled.
  • 文件索引服务已关闭。File indexing service is turned off.
  • 碎片整理服务已关闭。Defragmentation service is turned off.
  • "快速启动" 被禁用。Fast boot is disabled.
  • BCD 设置 bootstatuspolicy 设置为 ignoreallfailuresBCD setting bootstatuspolicy is set to ignoreallfailures.

如果需要,可以在启用 UWF 后更改这些设置。You can change these settings after you enable UWF if you want to. 例如,你可以将页面文件位置移到不受保护的卷上,然后重新启用页面文件。For example, you can move the page file location to an unprotected volume and re-enable paging files.

此外,在运行后 uwfmgr filter enable ,重新启动计算机并退出维护模式后,将禁用以下内容:Additionally, after you run uwfmgr filter enable, restart the computer and exit the servicing mode, the following things are disabled:

  • 通过设置 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate.) Windows 更新 (Windows Update (by setting HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate.)

  • 通过设置 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore\AutoDownload.) 的 Windows 应用商店更新 (Windows Store Update (by setting HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore\AutoDownload.)

  • 通过设置 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager\RegistryReorganizationLimitDays.) (重新组织注册表Registry Reorganization (by setting HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager\RegistryReorganizationLimitDays.)

  • 通过设置 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance\MaintenanceDisabled.) (维护小时Maintenance Hour (by setting HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance\MaintenanceDisabled.)

运行后 uwfmgr filter disable ,请重新启动计算机并进入服务模式,这会恢复更改。After you run uwfmgr filter disable, restart the computer and enter the serving mode, the changes are reverted.


Windows 版本Windows Edition 支持Supported
Windows 10 家庭版Windows 10 Home No
Windows 10 专业版Windows 10 Pro No
Windows 10 企业版Windows 10 Enterprise Yes
Windows 10 教育版Windows 10 Education Yes


统一写入筛选器Unified Write Filter