Article ID: 818018 - View products that this article applies to.
Expand all | Collapse all

On This Page

Summary

To keep Windows up to date, the Windows Update agent needs to connect to the Internet and communicate with the Windows Update or Microsoft Update service. When there is a problem with this connection, you see an error message that says Windows could not search for new updates. Additionally, you may receive an error code in Windows Update.

Here are some methods that you can try to resolve this problem:

Check your Internet connectivity

Before you try anything else, make sure that your computer is connected to the Internet. You can try using the Network troubleshooter that automatically fixes some common problems that involve going online. For more information, see Why can't I connect to the Internet.

Wait a few minutes and try again

Many connection errors are caused by temporary problems involving the Internet. Wait a few minutes, and then try running Windows Update again. If you've turned on automatic updating, you can also wait and let Windows Update run on schedule.

Enable the "Automatically detect settings" option in Internet Properties

If your computer is connected directly to the Internet or to a home network (and never connected to a network at work), you might want to configure your browser to automatically detect local area network (LAN) settings so that your computer can go online to obtain updates from Windows Update or Microsoft Update. To do this, follow these steps:
Windows 8.1 or Windows 8
Collapse this imageExpand this image
assets folding start collapsed
  1. Open Internet Properties.
    Swipe in from the right edge of the screen, tap Search (or if you are using a mouse, point to the lower-right corner of the screen, and then click Search), type inetcpl.cpl in the search box, and then tap or click inetcpl.cpl.
  2. In the Internet Properties dialog box, click the Connections tab, and then click LAN Settings.
  3. In Automatic configuration, select the Automatically detect settings check box, and then click OK.
Collapse this imageExpand this image
assets folding end collapsed
Windows 7, Windows Vista or Windows XP
Collapse this imageExpand this image
assets folding start collapsed
  1. Open Internet Properties.
    Click Start, click Run, type inetcpl.cpl, and then click OK to open the Internet Properties dialog box.
  2. In the Internet Properties dialog box, click the Connections tab, and then click LAN Settings.
  3. In Automatic configuration, select the Automatically detect settings check box, and then click OK.
Collapse this imageExpand this image
assets folding end collapsed

Reset proxy settings to Direct

If your computer is connected directly to the Internet or to a home network (and never connected to a network at work), you might want to configure your WinHTTP proxy setting to use direct access. To do this, follow these steps:
Windows 8.1 or Windows 8
Collapse this imageExpand this image
assets folding start collapsed
  1. Open an elevated Command Prompt.
    Swipe in from the right edge of the screen, and then tap Search (or if you are using a mouse, point to the lower-right corner of the screen, and then click Search). Type Command Prompt in the Search box, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  2. Type the following command in the Command Prompt window:
    netsh winhttp show proxy
    Note If the result is Direct access (no proxy server), you already have direct WinHttp access. Try other methods.
  3. Type the following commands in the Command Prompt window, press Enter after each command:
    netsh winhttp reset proxy
    net stop wuauserv
    net start wuauserv
Collapse this imageExpand this image
assets folding end collapsed
Windows 7 or Windows Vista
Collapse this imageExpand this image
assets folding start collapsed
  1. Open an elevated Command Prompt.
    Click Start, and then type cmd in the Start Search box. In the search results list, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password or click Allow.
  2. Type the following command in the Command Prompt window:
    netsh winhttp show proxy
    Note If the result is Direct access (no proxy server), you already have direct WinHttp access. Try other methods.
  3. Type the following commands in the Command Prompt window, press Enter after each command: 
    netsh winhttp reset proxy
    net stop wuauserv
    net start wuauserv
Collapse this imageExpand this image
assets folding end collapsed
Windows XP
Collapse this imageExpand this image
assets folding start collapsed
  1. Log on as an administrator.
  2. Click Start, and then type cmd in the Search box.
  3. Type the following command in the Command Prompt window:
    netsh winhttp show proxy
    Note If the result is Direct access (no proxy server), you already have direct WinHttp access. Try other methods.
  4. Type the following commands in the Command Prompt window, press Enter after each command:  
    netsh winhttp reset proxy
    net stop wuauserv
    net start wuauserv
Collapse this imageExpand this image
assets folding end collapsed

Use opt-in Microsoft Update

If your computer can connect to the Internet but cannot obtain the updates from Windows Update, try to opt-in Microsoft Update so that your computer can obtain updates from Microsoft Update. To do this, follow these steps:
Note This method does not apply to Windows XP.
Windows 8.1 or Windows 8
Collapse this imageExpand this image
assets folding start collapsed
  1. Open Windows Update.
    Swipe in from the right edge of the screen, tap Search (or if you are using a mouse, point to the lower-right corner of the screen, and then click Search), type Windows Update in the search box. In the search results list, click Windows Update.
  2. Use opt-in Microsoft Update.
    Click the Find out more option that is shown beside the message Get updates for other Microsoft products. This will take you to the Microsoft Update site for some quick installation steps. 
    Collapse this imageExpand this image
    Screenshot for this step.

    Collapse this imageExpand this image
    Screenshot for this step.
  3. Obtain updates from Microsoft Update.
    Click Check online for updates from Microsoft Update to obtain updates from Microsoft Update.
    Collapse this imageExpand this image
    Screenshot for this step.
Collapse this imageExpand this image
assets folding end collapsed
Windows 7 or Windows Vista
Collapse this imageExpand this image
assets folding start collapsed
  1. Open Windows Update.
    Click Start, and then type Windows Update in the Search box. In the search results list, click Windows Update.
  2. Use opt-in Microsoft Update.
    Click Get update for more products, and then sign up for Microsoft Update.
    Collapse this imageExpand this image
    Screenshot for this step.

    Collapse this imageExpand this image
    Screenshot for this step.
  3. Obtain updates from Microsoft Update.
    Click Check online for updates from Microsoft Update to obtain updates from Microsoft Update.
    Collapse this imageExpand this image
    Screenshot for this step.
Collapse this imageExpand this image
assets folding end collapsed

Configure the firewall for software updates

When there is a firewall between the Windows Update agent and the Internet, the firewall might need to be configured to allow communication for the HTTP and HTTPS ports used for Windows Update. Windows Update agent uses port 80 for HTTP and port 443 for HTTPS to obtain updates.
If your organization does not allow the ports and protocols to be open to all addresses, you can restrict access to the following sites:
  • http://windowsupdate.microsoft.com
  • http://*.windowsupdate.microsoft.com
  • https://*.windowsupdate.microsoft.com
  • http://*.update.microsoft.com
  • https://*.update.microsoft.com
  • http://*.windowsupdate.com
  • http://download.windowsupdate.com
  • http://download.microsoft.com
  • http://*.download.windowsupdate.com
  • http://wustat.windows.com
  • http://ntservicepack.microsoft.com
  • https://*.ws.microsoft.com
  • http://*.ws.microsoft.com

Run Windows Update troubleshooter

If the problem continues, you can use the Windows Update troubleshooter to automatically fix some common problems with Windows Update or Microsoft Update, and then run Windows Update again. To start the troubleshooter, click run now.
Windows 8.1, Windows 8 or Windows 7
Collapse this imageExpand this image
assets folding start collapsed
Collapse this imageExpand this image
assets mats1
The Automatically diagnose and fix common problems with Windows Update troubleshooter may automatically fix the problem described in this article.
This troubleshooter fixes many problems.learn morerun now
Collapse this imageExpand this image
assets mats2
Collapse this imageExpand this image
assets folding end collapsed
Windows Vista or Windows XP
Collapse this imageExpand this image
assets folding start collapsed
Collapse this imageExpand this image
assets mats1
The Automatically diagnose and fix common problems with Windows Update troubleshooter may automatically fix the problem described in this article.
This troubleshooter fixes many problems.learn morerun now
Collapse this imageExpand this image
assets mats2

If you are running Windows XP Service Pack 2 (SP2), Windows XP Service Pack 1 (SP1), or Windows XP, run the Fix it solution below.
Collapse this imageExpand this image
assets fixit1
Fix this problem
Microsoft Fix it 50202
Collapse this imageExpand this image
assets fixit2
Collapse this imageExpand this image
assets folding end collapsed

Repair Windows corruptions

Sometimes, the Windows Update agent cannot connect to the Windows Update service because of corrupted Windows components. To fix such corruptions, follow these steps:
  1. Use the System File Checker tool to repair corrupted Windows files, and then run Windows Update again.
  2. If the problem continues, use the DISM or System Update Readiness (CheckSur) tool to repair Windows servicing corruptions.

Connection error code list

Collapse this tableExpand this table
Error codeSymbolic NameDescription
0x8024400aWU_E_PT_SOAPCLIENT_PARSESame as SOAPCLIENT_PARSE_ERROR - SOAP client failed to parse the response from the server.
0x8024400dWU_E_PT_SOAP_CLIENTSame as SOAP_E_CLIENT - SOAP client found the message was malformed; fix before resending.
0x8024400eWU_E_PT_SOAP_SERVERSame as SOAP_E_SERVER - The SOAP message could not be processed due to a server error; resend later.
0x8024402cWU_E_PT_WINHTTP_NAME_NOT_RESOLVEDSame as ERROR_WINHTTP_NAME_NOT_RESOLVED - the proxy server or target server name cannot be resolved.
0x80240030WU_E_INVALID_PROXY_SERVERThe format of the proxy list was invalid.
0x80070197HTTP_STATUS_PROXY_AUTH_REQProxy authentication required.
0x80244017WU_E_PT_HTTP_STATUS_DENIEDSame as HTTP status 401 - the requested resource requires user authentication.
0x80244018WU_E_PT_HTTP_STATUS_FORBIDDENSame as HTTP status 403 - server understood the request, but declined to fulfill it.
0x80244019WU_E_PT_HTTP_STATUS_NOT_FOUNDSame as HTTP status 404 - the server cannot find the requested URI (Uniform Resource Identifier).
0x8024401bWU_E_PT_HTTP_STATUS_PROXY_AUTH_REQSame as HTTP status 407 - proxy authentication is required
0x80244021WU_E_PT_HTTP_STATUS_BAD_GATEWAYSame as HTTP status 502 - the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
0x80072ee7WININET_E_NAME_NOT_RESOLVEDThe server name or address could not be resolved.
0x8024402cWU_E_PT_WINHTTP_NAME_NOT_RESOLVEDSame as ERROR_WINHTTP_NAME_NOT_RESOLVED - the proxy server or target server name cannot be resolved.
0x8024502dWU_E_PT_SAME_REDIR_IDWindows Update Agent failed to download a redirector cabinet file with a new redirectorId value from the server during the recovery.
0x800705b4ERROR_TIMEOUTThis operation returned because the timeout period expired.
0x80072ee2WININET_E_TIMEOUTThe operation timed out.
0x80072efdWININET_E_CANNOT_CONNECTA connection with the server could not be established.
0x80072ee7WININET_E_NAME_NOT_RESOLVEDThe server name or address could not be resolved.
0x80072eefWININET_E_LOGIN_FAILUREThe login request was denied.
0x80072efeWININET_E_CONNECTION_ABORTEDThe connection with the server was terminated abnormally.
0x80242016WU_E_UH_POSTREBOOTUNEXPECTEDSTATEThe state of the update after its post-reboot operation has completed is unexpected.
0x80244022WU_E_PT_HTTP_STATUS_SERVICE_UNAVAILSame as HTTP status 503 - the service is temporarily overloaded.
0x80244016WU_E_PT_HTTP_STATUS_BAD_REQUESTSame as HTTP status 400 - the server could not process the request due to invalid syntax.
0x8024402fWU_E_PT_ECP_SUCCEEDED_WITH_ERRORSExternal cab file processing completed with some errors.
0xc80003faERROR_KEY_DELETEDIllegal operation attempted on a registry key that has been marked for deletion.
0x8024401bWU_E_PT_HTTP_STATUS_PROXY_AUTH_REQSame as HTTP status 407 - proxy authentication is required.
0x800a01aeN/AN/A
0x80070570ERROR_FILE_CORRUPTThe file or directory is corrupted and unreadable.
0x80040265ERROR_INVALID_COMPRESSION_SPECIFIEDN/A
0x80040266ERROR_OUT_OF_BUFFERSN/A
0x80040267ERROR_PORT_NOT_FOUNDN/A
0x80040268ERROR_ASYNC_REQUEST_PENDINGN/A
0x80040269ERROR_ALREADY_DISCONNECTINGN/A
0x8004026aERROR_PORT_NOT_OPENN/A
0x8004026bERROR_PORT_DISCONNECTEDN/A
0x8004026cERROR_NO_ENDPOINTSN/A
0x80080203APPX_E_MISSING_REQUIRED_FILEThe file is not a valid Appx package because it is missing a manifest or block map, or missing a signature file when the code integrity file is present.
0x80080206APPX_E_CORRUPT_CONTENTThe Appx package's content cannot be read because it is corrupt.
0x80072ee4WININET_E_INTERNAL_ERRORAn internal error occurred in the Microsoft Internet extensions
0x8007066aERROR_PATCH_TARGET_NOT_FOUNDThe upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade.
0x8024001fWU_E_NO_CONNECTIONOperation did not complete because the network connection was unavailable.
0x800705b4ERROR_TIMEOUTThis operation returned because the timeout period expired.
0x80072f78WININET_E_INVALID_SERVER_RESPONSEThe server returned an invalid or unrecognized response
0x80090305SEC_E_SECPKG_NOT_FOUNDThe requested security package does not exist.
0x8009033fSEC_E_SHUTDOWN_IN_PROGRESSA system shutdown is in progress.
0x80072efeWININET_E_CONNECTION_ABORTEDThe connection with the server was terminated abnormally.
0x80072f76WININET_E_HEADER_NOT_FOUNDThe requested header was not found.

Properties

Article ID: 818018 - Last Review: May 28, 2014 - Revision: 10.0
Applies to
  • Microsoft Windows Update
  • Microsoft Update
Keywords: 
kbwindowsupdatev3 kbwindowsupdatev6 kbwindowsupdatev4 kbhowtomaster KB818018

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com