UWF_Filter.EnableUWF_Filter.Enable

在下次重新開機時, (UWF) 啟用整合寫入篩選器。Enables Unified Write Filter (UWF) on the next restart.

語法Syntax

UInt32 Enable();

參數Parameters

無。None.

傳回值Return Value

傳回 HRESULT 值,指出 wmi 狀態wmi 錯誤Returns an HRESULT value that indicates WMI status or a WMI error.

備註Remarks

您必須使用系統管理員帳戶來啟用 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 Update (Windows Update (by setting HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate.)

  • 設定 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore\AutoDownload.) 的 Windows Store 更新 (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.

需求Requirements

Windows 版本Windows Edition 支援Supported
Windows 10 HomeWindows 10 Home No
Windows 10 ProWindows 10 Pro No
Windows 10 EnterpriseWindows 10 Enterprise Yes
Windows 10 EducationWindows 10 Education Yes

UWF_FilterUWF_Filter

統一寫入篩選器Unified Write Filter