title | description | MSHAttr | ms.assetid | author | ms.author | ms.service | ms.subservice | ms.date | ms.topic | ||
---|---|---|---|---|---|---|---|---|---|---|---|
UWF_Servicing.UpdateWindows |
UWF_Servicing.UpdateWindows |
|
578ee0ac-fcc9-4021-9967-7b3f20eaadee |
TerryWarwick |
twarwick |
windows-iot |
iot |
05/20/2024 |
article |
Calls Windows Update to download and install critical and security updates for your device running Windows 10 Enterprise.
UInt32 UpdateWindows(
[out] UInt32 UpdateStatus
);
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. |
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. 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.
Windows Edition | Supported |
---|---|
Windows Home | No |
Windows Pro | No |
Windows Enterprise | Yes |
Windows Education | Yes |
Windows IoT Enterprise | Yes |