UWF _ 服务. UpdateWindowsUWF_Servicing.UpdateWindows

调用 Windows 更新下载并安装运行 Windows 10 企业版的设备的关键更新和安全更新。Calls Windows Update to download and install critical and security updates for your device running Windows 10 Enterprise.

语法Syntax

UInt32 UpdateWindows(
    [out] UInt32 UpdateStatus
);

参数Parameters

UpdateStatus []一个包含 Windows 更新操作状态的整数,如下表所示:UpdateStatus [out] An integer that contains the status of the Windows Update operation, according to the following table:

UpdateStatusUpdateStatus 说明Description

00

成功。Success.

30103010

需要重新启动。Restart required.

任何其他值。Any other value.

常规错误。Generic error.

返回值Return Value

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

备注Remarks

此方法旨在用作维护脚本的一部分。This method is meant to be used as part of a servicing script. 有关详细信息,请参阅 服务 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.

要求Requirements

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

UWF _ 服务UWF_Servicing

统一写入筛选器Unified Write Filter