UWF _ 服務。 UpdateWindowsUWF_Servicing.UpdateWindows

呼叫 Windows Update,以下載並安裝執行 Windows 10 企業版之裝置的重大和安全性更新。Calls Windows Update to download and install critical and security updates for your device running Windows 10 Enterprise.


UInt32 UpdateWindows(
    [out] UInt32 UpdateStatus


UpdateStatus []根據下表,輸出包含 Windows Update 作業狀態的整數:UpdateStatus [out] An integer that contains the status of the Windows Update operation, according to the following table:

UpdateStatusUpdateStatus 描述Description




需要重新開機。Restart required.

任何其他值。Any other value.

一般錯誤。Generic error.

傳回值Return Value

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


這個方法是用來作為服務腳本的一部分。This method is meant to be used as part of a servicing script. 如需詳細資訊,請參閱 SERVICE UWF 保護的裝置For more information, see Service UWF-protected devices.

這個方法不會停用或啟用 (UWF) 的整合寫入篩選器。This method does not disable or enable Unified Write Filter (UWF). 如果您在啟用 UWF 時呼叫此方法,更新可能會在裝置重新開機時遺失。If you call this method while UWF is enabled, updates may be lost when the device restarts.


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 _ 服務UWF_Servicing

統一寫入篩選器Unified Write Filter