WUA Success and Error Codes
The Windows Update Agent (WUA) API can return the following success or error codes for non-network operations:
Constant/value | Description |
---|---|
WU_S_SERVICE_STOP 0x00240001 | WUA was stopped successfully. |
WU_S_SELFUPDATE 0x00240002 | WUA updated itself. |
WU_S_UPDATE_ERROR 0x00240003 | The operation completed successfully but errors occurred applying the updates. |
WU_S_MARKED_FOR_DISCONNECT 0x00240004 | A callback was marked to be disconnected later because the request to disconnect the operation came while a callback was executing. |
WU_S_REBOOT_REQUIRED 0x00240005 | The system must be restarted to complete installation of the update. |
WU_S_ALREADY_INSTALLED 0x00240006 | The update to be installed is already installed on the system. |
WU_S_ALREADY_UNINSTALLED 0x00240007 | The update to be removed is not installed on the system. |
WU_S_ALREADY_DOWNLOADED 0x00240008 | The update to be downloaded has already been downloaded. |
WU_S_UH_INSTALLSTILLPENDING 0x00242015 | The installation operation for the update is still in progress. |
WU_E_NO_SERVICE 0x80240001 | WUA was unable to provide the service. |
WU_E_MAX_CAPACITY_REACHED 0x80240002 | The maximum capacity of the service was exceeded. |
WU_E_UNKNOWN_ID 0x80240003 | WUA cannot find an ID. |
WU_E_NOT_INITIALIZED 0x80240004 | The object could not be initialized. |
WU_E_RANGEOVERLAP 0x80240005 | The update handler requested a byte range overlapping a previously requested range. |
WU_E_TOOMANYRANGES 0x80240006 | The requested number of byte ranges exceeds the maximum number (2³¹ - 1). |
WU_E_INVALIDINDEX 0x80240007 | The index to a collection was invalid. |
WU_E_ITEMNOTFOUND 0x80240008 | The key for the item queried could not be found. |
WU_E_OPERATIONINPROGRESS 0x80240009 | Another conflicting operation was in progress. Some operations such as installation cannot be performed twice simultaneously. |
WU_E_COULDNOTCANCEL 0x8024000A | Cancellation of the operation was not allowed. |
WU_E_CALL_CANCELLED 0x8024000B | Operation was cancelled. |
WU_E_NOOP 0x8024000C | No operation was required. |
WU_E_XML_MISSINGDATA 0x8024000D | WUA could not find required information in the update's XML data. |
WU_E_XML_INVALID 0x8024000E | WUA found invalid information in the update's XML data. |
WU_E_CYCLE_DETECTED 0x8024000F | Circular update relationships were detected in the metadata. |
WU_E_TOO_DEEP_RELATION 0x80240010 | Update relationships too deep to evaluate were evaluated. |
WU_E_INVALID_RELATIONSHIP 0x80240011 | An invalid update relationship was detected. |
WU_E_REG_VALUE_INVALID 0x80240012 | An invalid registry value was read. |
WU_E_DUPLICATE_ITEM 0x80240013 | Operation tried to add a duplicate item to a list. |
WU_E_INVALID_INSTALL_REQUESTED 0x80240014 | Updates that are requested for install are not installable by the caller. |
WU_E_INSTALL_NOT_ALLOWED 0x80240016 | Operation tried to install while another installation was in progress or the system was pending a mandatory restart. |
WU_E_NOT_APPLICABLE 0x80240017 | Operation was not performed because there are no applicable updates. |
WU_E_NO_USERTOKEN 0x80240018 | Operation failed because a required user token is missing. |
WU_E_EXCLUSIVE_INSTALL_CONFLICT 0x80240019 | An exclusive update can't be installed with other updates at the same time. |
WU_E_POLICY_NOT_SET 0x8024001A | A policy value was not set. |
WU_E_SELFUPDATE_IN_PROGRESS 0x8024001B | The operation could not be performed because the Windows Update Agent is self-updating. |
WU_E_INVALID_UPDATE 0x8024001D | An update contains invalid metadata. |
WU_E_SERVICE_STOP 0x8024001E | Operation did not complete because the service or system was being shut down. |
WU_E_NO_CONNECTION 0x8024001F | Operation did not complete because the network connection was unavailable. |
WU_E_NO_INTERACTIVE_USER 0x80240020 | Operation did not complete because there is no logged-on interactive user. |
WU_E_TIME_OUT 0x80240021 | Operation did not complete because it timed out. |
WU_E_ALL_UPDATES_FAILED 0x80240022 | Operation failed for all the updates. |
WU_E_EULAS_DECLINED 0x80240023 | The license terms for all updates were declined. |
WU_E_NO_UPDATE 0x80240024 | There are no updates. |
WU_E_USER_ACCESS_DISABLED 0x80240025 | Group Policy settings prevented access to Windows Update. |
WU_E_INVALID_UPDATE_TYPE 0x80240026 | The type of update is invalid. |
WU_E_URL_TOO_LONG 0x80240027 | The URL exceeded the maximum length. |
WU_E_UNINSTALL_NOT_ALLOWED 0x80240028 | The update could not be uninstalled because the request did not originate from a Windows Server Update Services (WSUS) server. |
WU_E_INVALID_PRODUCT_LICENSE 0x80240029 | Search may have missed some updates before there is an unlicensed application on the system. |
WU_E_MISSING_HANDLER 0x8024002A | A component required to detect applicable updates was missing. |
WU_E_LEGACYSERVER 0x8024002B | An operation did not complete because it requires a newer version of server. |
WU_E_BIN_SOURCE_ABSENT 0x8024002C | A delta-compressed update could not be installed because it required the source. |
WU_E_SOURCE_ABSENT 0x8024002D | A full-file update could not be installed because it required the source. |
WU_E_WU_DISABLED 0x8024002E | Access to an unmanaged server is not allowed. |
WU_E_CALL_CANCELLED_BY_POLICY 0x8024002F | Operation did not complete because the DisableWindowsUpdateAccess policy was set in the registry. |
WU_E_INVALID_PROXY_SERVER 0x80240030 | The format of the proxy list was invalid. |
WU_E_INVALID_FILE 0x80240031 | The file is in the wrong format. |
WU_E_INVALID_CRITERIA 0x80240032 | The search criteria string was invalid. |
WU_E_EULA_UNAVAILABLE 0x80240033 | License terms could not be downloaded. |
WU_E_DOWNLOAD_FAILED 0x80240034 | Update failed to download. |
WU_E_UPDATE_NOT_PROCESSED 0x80240035 | The update was not processed. |
WU_E_INVALID_OPERATION 0x80240036 | The object's current state did not allow the operation. |
WU_E_NOT_SUPPORTED 0x80240037 | The functionality for the operation is not supported. |
WU_E_TOO_MANY_RESYNC 0x80240039 | Agent is asked by server to resync too many times. |
WU_E_NO_SERVER_CORE_SUPPORT 0x80240040 | The WUA API method does not run on the server core installation. |
WU_E_SYSPREP_IN_PROGRESS 0x80240041 | Service is not available while sysprep is running. |
WU_E_UNKNOWN_SERVICE 0x80240042 | The update service is no longer registered with automatic updates. |
WU_E_NO_UI_SUPPORT 0x80240043 | No support for the WUA user interface. |
WU_E_PER_MACHINE_UPDATE_ACCESS_DENIED 0x80240044 | Only administrators can perform this operation on per-computer updates. |
WU_E_UNSUPPORTED_SEARCHSCOPE 0x80240045 | A search was attempted with a scope that is not currently supported for this type of search. |
WU_E_BAD_FILE_URL 0x80240046 | The URL does not point to a file. |
WU_E_NOTSUPPORTED 0x80240047 | The operation requested is not supported. |
WU_E_INVALID_NOTIFICATION_INFO 0x80240048 | The featured update notification info returned by the server is invalid. |
WU_E_OUTOFRANGE 0x80240049 | The data is out of range. |
WU_E_SETUP_IN_PROGRESS 0x8024004A | WUA operations are not available while operating system setup is running. |
WU_E_UNEXPECTED 0x80240FFF | An operation failed due to reasons not covered by another error code. |
Requirements
Header |
Wuerror.h |