WUA Success and Error Codes

Header: wuerror.h

The Windows Update Agent (WUA) API can return the following success or error codes for non-network operations:

SymbolicCodeDescription
WU_S_SERVICE_STOP0x00240001WUA was stopped successfully.
WU_S_SELFUPDATE0x00240002WUA updated itself.
WU_S_UPDATE_ERROR0x00240003The operation completed successfully but errors occurred applying the updates.
WU_S_MARKED_FOR_DISCONNECT0x00240004A callback was marked to be disconnected later because the request to disconnect the operation came while a callback was executing.
WU_S_REBOOT_REQUIRED0x00240005The system must be restarted to complete installation of the update.
WU_S_ALREADY_INSTALLED0x00240006The update to be installed is already installed on the system.
WU_S_ALREADY_UNINSTALLED0x00240007The update to be removed is not installed on the system.
WU_S_ALREADY_DOWNLOADED0x00240008The update to be downloaded has already been downloaded.
WU_S_UH_INSTALLSTILLPENDING0x00242015The installation operation for the update is still in progress.
WU_E_NO_SERVICE0x80240001WUA was unable to provide the service.
WU_E_MAX_CAPACITY_REACHED0x80240002The maximum capacity of the service was exceeded.
WU_E_UNKNOWN_ID0x80240003WUA cannot find an ID.
WU_E_NOT_INITIALIZED0x80240004The object could not be initialized.
WU_E_RANGEOVERLAP0x80240005The update handler requested a byte range overlapping a previously requested range.
WU_E_TOOMANYRANGES0x80240006The requested number of byte ranges exceeds the maximum number (2³¹ - 1).
WU_E_INVALIDINDEX0x80240007The index to a collection was invalid.
WU_E_ITEMNOTFOUND0x80240008The key for the item queried could not be found.
WU_E_OPERATIONINPROGRESS0x80240009Another conflicting operation was in progress. Some operations such as installation cannot be performed twice simultaneously.
WU_E_COULDNOTCANCEL0x8024000ACancellation of the operation was not allowed.
WU_E_CALL_CANCELLED0x8024000BOperation was cancelled.
WU_E_NOOP0x8024000CNo operation was required.
WU_E_XML_MISSINGDATA0x8024000DWUA could not find required information in the update's XML data.
WU_E_XML_INVALID0x8024000EWUA found invalid information in the update's XML data.
WU_E_CYCLE_DETECTED0x8024000FCircular update relationships were detected in the metadata.
WU_E_TOO_DEEP_RELATION0x80240010Update relationships too deep to evaluate were evaluated.
WU_E_INVALID_RELATIONSHIP0x80240011An invalid update relationship was detected.
WU_E_REG_VALUE_INVALID0x80240012An invalid registry value was read.
WU_E_DUPLICATE_ITEM0x80240013Operation tried to add a duplicate item to a list.
WU_E_INVALID_INSTALL_REQUESTED0x80240014Updates that are requested for install are not installable by the caller.
WU_E_INSTALL_NOT_ALLOWED0x80240016Operation tried to install while another installation was in progress or the system was pending a mandatory restart.
WU_E_NOT_APPLICABLE0x80240017Operation was not performed because there are no applicable updates.
WU_E_NO_USERTOKEN0x80240018Operation failed because a required user token is missing.
WU_E_EXCLUSIVE_INSTALL_CONFLICT0x80240019An exclusive update can't be installed with other updates at the same time.
WU_E_POLICY_NOT_SET0x8024001AA policy value was not set.
WU_E_SELFUPDATE_IN_PROGRESS0x8024001BThe operation could not be performed because the Windows Update Agent is self-updating.
WU_E_INVALID_UPDATE0x8024001DAn update contains invalid metadata.
WU_E_SERVICE_STOP0x8024001EOperation did not complete because the service or system was being shut down.
WU_E_NO_CONNECTION0x8024001FOperation did not complete because the network connection was unavailable.
WU_E_NO_INTERACTIVE_USER0x80240020Operation did not complete because there is no logged-on interactive user.
WU_E_TIME_OUT0x80240021Operation did not complete because it timed out.
WU_E_ALL_UPDATES_FAILED0x80240022Operation failed for all the updates.
WU_E_EULAS_DECLINED0x80240023The license terms for all updates were declined.
WU_E_NO_UPDATE0x80240024There are no updates.
WU_E_USER_ACCESS_DISABLED0x80240025Group Policy settings prevented access to Windows Update.
WU_E_INVALID_UPDATE_TYPE0x80240026The type of update is invalid.
WU_E_URL_TOO_LONG0x80240027The URL exceeded the maximum length.
WU_E_UNINSTALL_NOT_ALLOWED0x80240028The update could not be uninstalled because the request did not originate from a Windows Server Update Services (WSUS) server.
WU_E_INVALID_PRODUCT_LICENSE0x80240029Search may have missed some updates before there is an unlicensed application on the system.
WU_E_MISSING_HANDLER0x8024002AA component required to detect applicable updates was missing.
WU_E_LEGACYSERVER0x8024002BAn operation did not complete because it requires a newer version of server.
WU_E_BIN_SOURCE_ABSENT0x8024002CA delta-compressed update could not be installed because it required the source.
WU_E_SOURCE_ABSENT0x8024002DA full-file update could not be installed because it required the source.
WU_E_WU_DISABLED0x8024002EAccess to an unmanaged server is not allowed.
WU_E_CALL_CANCELLED_BY_POLICY0x8024002FOperation did not complete because the DisableWindowsUpdateAccess policy was set in the registry.
WU_E_INVALID_PROXY_SERVER0x80240030The format of the proxy list was invalid.
WU_E_INVALID_FILE0x80240031The file is in the wrong format.
WU_E_INVALID_CRITERIA0x80240032The search criteria string was invalid.
WU_E_EULA_UNAVAILABLE0x80240033License terms could not be downloaded.
WU_E_DOWNLOAD_FAILED0x80240034Update failed to download.
WU_E_UPDATE_NOT_PROCESSED0x80240035The update was not processed.
WU_E_INVALID_OPERATION0x80240036The object's current state did not allow the operation.
WU_E_NOT_SUPPORTED0x80240037The functionality for the operation is not supported.
WU_E_TOO_MANY_RESYNC0x80240039Agent is asked by server to resync too many times.
WU_E_NO_SERVER_CORE_SUPPORT0x80240040The WUA API method does not run on the server core installation.
WU_E_SYSPREP_IN_PROGRESS0x80240041Service is not available while sysprep is running.
WU_E_UNKNOWN_SERVICE0x80240042The update service is no longer registered with automatic updates.
WU_E_NO_UI_SUPPORT0x80240043No support for the WUA user interface.
WU_E_PER_MACHINE_UPDATE_ACCESS_DENIED0x80240044Only administrators can perform this operation on per-computer updates.
WU_E_UNSUPPORTED_SEARCHSCOPE0x80240045A search was attempted with a scope that is not currently supported for this type of search.
WU_E_BAD_FILE_URL0x80240046The URL does not point to a file.
WU_E_NOTSUPPORTED0x80240047The operation requested is not supported.
WU_E_INVALID_NOTIFICATION_INFO0x80240048The featured update notification info returned by the server is invalid.
WU_E_OUTOFRANGE0x80240049The data is out of range.
WU_E_SETUP_IN_PROGRESS0x8024004AWUA operations are not available while operating system setup is running.
WU_E_UNEXPECTED0x80240FFFAn operation failed due to reasons not covered by another error code.
75 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.