On a work or school PC, the proxy and firewall are usually set by your organization; contact IT instead of changing them. If Windows cannot start, see the startup guide.
Work through these checks
0 of 7 complete01Check the connection, date and time
A time-out can be a temporary network problem, and a wrong clock makes secure connections to Microsoft fail.
- Open a website in your browser to confirm the internet works, then restart the PC and the router.
- Open Settings > Time & language > Date & time, turn on Set time automatically and click Sync now.
- Try Windows Update again.
Windows Update connects and checks for updates.
If it does not helpIf the browser works but Windows Update still times out, something is blocking only Windows Update; continue with step 2.
02Remove proxy settings
Windows Update uses the system proxy (WinHTTP). A proxy left behind by a program or old network setup blocks it.
- Open Settings > Network & internet > Proxy. Turn off Use a proxy server under Manual proxy setup unless you need one.
- In Terminal (Admin), run netsh winhttp show proxy.
- If it shows a proxy server you do not use, run netsh winhttp reset proxy to return to a direct connection.
netsh winhttp show proxy reports Direct access (no proxy server).
If it does not helpIf you do need a proxy, Microsoft's command netsh winhttp import proxy source=ie copies the settings app's proxy to Windows Update.
03Test without VPN, firewall and filtering
Microsoft's fix for this code is to make sure firewalls and proxies do not block its download URLs.
- Disconnect any VPN and pause third-party firewall or internet security software, then try Windows Update.
- If you use DNS filtering or an ad-blocking DNS (for example Pi-hole or a router feature), check its block log for Microsoft domains such as windowsupdate.com, update.microsoft.com and delivery.mp.microsoft.com, and allow them.
- Turn the protection back on after the test.
Do not leave the PC without protection; Microsoft Defender takes over when you remove another antivirus.
Windows Update works with the blocking program paused.
If it does not helpIf a program was blocking it, add an exception for Windows Update in that program, or update or replace it.
04Reset DNS and the network
Stale DNS entries or broken network settings can send update traffic to the wrong place.
- In Terminal (Admin), run ipconfig /flushdns.
- If that does not help, open Settings > Network & internet > Advanced network settings > Network reset and choose Reset now. The PC restarts.
Network reset removes saved Wi-Fi networks and passwords.
Windows Update connects after the reset.
If it does not helpAfter a network reset, reconnect to Wi-Fi and reinstall VPN software if you use it.
05Run the Windows Update troubleshooter
The troubleshooter checks and repairs the update services and settings automatically.
- On Windows 11, open Settings > System > Troubleshoot > Other troubleshooters and select Run next to Windows Update. Microsoft may open it in the Get Help app.
- On Windows 10, open Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Update.
The troubleshooter fixes the problem it finds.
If it does not helpRestart and check for updates again.
06Clear the Windows Update cache
A damaged download or update database can make Windows Update retry a connection that keeps failing.
- Open Command Prompt (Admin) and run net stop wuauserv, net stop bits and net stop cryptsvc.
- Run ren %systemroot%\SoftwareDistribution\Download Download.bak, ren %systemroot%\SoftwareDistribution\DataStore DataStore.bak and ren %systemroot%\system32\catroot2 catroot2.bak.
- Run net start cryptsvc, net start bits and net start wuauserv, then check for updates.
Windows Update starts fresh and downloads the updates.
If it does not helpThe update history may look empty afterwards; installed updates are not affected.
07Install the update manually
If only Windows Update is blocked, you can still get the update from Microsoft's website.
- In Settings > Windows Update > Update history, note the KB number of the update that fails.
- Download it from the Microsoft Update Catalog (catalog.update.microsoft.com) in a browser and run the .msu file.
Download updates only from Microsoft.
The update installs.
If it does not helpIf the download also fails in the browser, the block is on your network or internet provider; check the router's security or parental control settings.
Possible causes
- Leftover proxy settings that no longer work
- A VPN, firewall or internet security suite blocking the connection
- DNS filtering or ad blocking that blocks Microsoft update domains
- Wrong date and time, which breaks secure connections
- Temporary network or Microsoft server problems
Was this helpful?
Your progress is saved on this device.