UWF_Servicing.UpdateWindows

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 [out] An integer that contains the status of the Windows Update operation, according to the following table:

UpdateStatus Description

0

Success.

3010

Restart required.

Any other value.

Generic error.

Return Value

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. For more information, see Service UWF-protected devices.

This method does not disable or enable Unified Write Filter (UWF). If you call this method while UWF is enabled, updates may be lost when the device restarts.

Requirements

Windows Edition Supported
Windows 10 Home No
Windows 10 Pro No
Windows 10 Enterprise Yes
Windows 10 Education Yes

UWF_Servicing

Unified Write Filter