- Documentation
- WuInstall
Error Codes
When WuInstall encounters a Windows Update error, it reports the error code in the output. Below are some commonly seen error codes:
| Error Code | Error String | Description |
|---|---|---|
| 0x80240044 | WU_E_PER_MACHINE_UPDATE_ACCESS_DENIED | Only administrators can perform this operation on per-machine updates. |
| 0x80248013 | WU_E_DS_DUPLICATEUPDATEID | The server sent the same update to the client with two different revision IDs. |
| 0x80244021 | WU_E_PT_HTTP_STATUS_BAD_GATEWAY | Same as HTTP status 502 — the server, while acting as a gateway or proxy, received an invalid response from the upstream server. |
| 0x80072EE6 | ERROR_INTERNET_UNRECOGNIZED_SCHEME | The URL scheme could not be recognized or is not supported. |
| 0x80072EFD | ERROR_INTERNET_CANNOT_CONNECT | A connection with the server could not be established. Usually indicates the WSUS address is configured incorrectly or there are proxy problems. |
| 0x8024402C | WU_E_PT_WINHTTP_NAME_NOT_RESOLVED | The proxy server or target server name cannot be resolved. Usually the WSUS server name or the proxy name is wrong or cannot be resolved in DNS. |
| 0x80070005 | E_ACCESSDENIED | Access denied. WuInstall does not run with administrator rights, or it runs in a PowerShell remoting (WinRM) session, where Windows refuses downloads and installations through the Windows Update API. Run WuInstall elevated, and on remote machines start it with PsExec -s, a scheduled task that runs as SYSTEM or your RMM tool. |
| 0x8024400A | WU_E_PT_SOAPCLIENT_PARSE | The SOAP client failed to parse the response from the server. On freshly installed older systems (Windows 7, Windows 8, Windows Server 2008 R2 and Windows Server 2012), this can mean that the Windows Update Agent is not properly installed — install the latest Windows Update Agent. |
| 0x80240022 | WU_E_ALL_UPDATES_FAILED | All update installations failed. Try adding /quiet /disableprompt to your WuInstall command. |
| 0x80240028 | WU_E_UNINSTALL_NOT_ALLOWED | The update could not be uninstalled because the request did not originate from a WSUS server. |
For a comprehensive list of Windows Update error codes, see the Microsoft documentation.