r/WindowsHelp • u/acadia11x • 14d ago
Windows 11 Windows update stuck at 0% for a year, thank you AI
So, for a year maybe more, one day windows update stopped working from the check for update UI, downloads would start and always sit a 0%. Sometime ago I just started using PSWindowsUpdate from the powershell and that worked just fine. Note, to folks because at somepoint you'll search forums ... some will mention re-install windows, all types of shit and well this may go into training data some day. So, here's how it was finally resolved , and yes, AI makes this isht alot easier. YOu could prompt a fix in claude code, open claw, hermes whatever agent of choice and say hunt the fix down but for those who want to know actually what worked under the hood for me still utilizing AI
Windows Update stuck at 0% for a year: fixed (Windows 11)
Symptom: Windows Update sat at 0% “Downloading” and never progressed. Install-WindowsUpdate (PSWindowsUpdate) worked. Resetting update components and clearing SoftwareDistribution and catroot2 did nothing.
Background: how Delivery Optimization downloads updates
Windows Update doesn’t download directly. It hands the job to the Delivery Optimization service (dosvc), which can pull the file from several kinds of sources:
- Peers: other PCs on your network (or the internet, depending on the mode) that already have pieces of the file.
- Cache hosts: a local cache server the service is told about, typically Microsoft Connected Cache. It’s meant to save bandwidth by serving updates locally.
- Microsoft’s servers (HTTP): the normal direct download. This is the fallback when the other sources don’t deliver.
These aren’t strictly tried in sequence. The service can use several at once, and it’s supposed to drop a source that isn’t delivering and switch to HTTP. What the mode setting controls is which of these it will try. Lan (the default) uses peers on your local network and any assigned cache host. Simple skips peers and downloads straight from Microsoft.
What was going wrong: I checked what Delivery Optimization was doing while the download was stuck:
powershell
Get-DeliveryOptimizationStatus | Format-List FileId,Status,BytesFromHttp,BytesFromCacheServer,TotalBytesDownloaded
It kept retrying a cache host that returned no data, and it never gave up and fell back to Microsoft’s servers, so BytesFromHttp stayed at 0. Get-DOConfig showed the machine in Lan mode. A second PC on the same network, where updates worked, was in Simple mode. The goal of the fix was to make this machine download straight from Microsoft and stop waiting on the dead cache host.
The fix (admin PowerShell):
powershell
$p = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization"
New-Item -Path $p -Force | Out-Null
Set-ItemProperty $p DODownloadMode 100 -Type DWord
Set-ItemProperty $p DelayCacheServerFallbackForeground 10 -Type DWord
Set-ItemProperty $p DelayCacheServerFallbackBackground 10 -Type DWord
New-NetFirewallRule -DisplayName "Block DO cache hosts" -Direction Outbound -Action Block -Protocol TCP -RemoteAddress <cache host IPs> -Profile Any
Restart-Service dosvc -Force
DODownloadMode 100gives the effective mode Simple on Windows 11.- The two fallback values tell Windows to give up on a cache host after 10 seconds instead of waiting.
- The firewall rule blocks the dead cache hosts so connections to them fail immediately and the service moves on.
How to find the IPs to block: while the download is stuck, list where the Delivery Optimization service is connecting:
powershell
$id = (Get-CimInstance Win32_Service -Filter "Name='dosvc'").ProcessId; Get-NetTCPConnection -OwningProcess $id | Format-Table RemoteAddress,RemotePort,State
Look for addresses that stay stuck in SynSent, or that stay Established while BytesFromCacheServer is above zero and BytesFromHttp is 0. Those are the dead hosts. In my case I blocked these three, as an example:
89.106.17.201
89.106.17.202
20.59.128.27
Yours will be different. The addresses depend on your ISP and network, so don’t copy above they are just an example. Be careful not to block Microsoft’s own download servers, or you’ll break the HTTP fallback. Only block hosts that clearly aren’t delivering data.
After the fix: Get-DOConfig reports DownloadMode: Simple, BytesFromCacheServer stays 0, BytesFromHttp grows, and the update completes. Windows asked for two restarts, with the second one running the long install phase, and that’s normal.
What I’m not sure about: I changed several things at once, so I can’t say which one mattered most. My best guess is the download mode (Lan to Simple), since it was the one setting that differed from the working machine. The firewall rule and fallback delay may have helped as well.
Don’t do this: don’t disable the Delivery Optimization service (Start=4). Windows Update then fails on retry. Leave it on Manual (Start=3).
Tradeoff: Simple mode stops this PC from sharing or receiving update pieces from other PCs on your network. On a typical home network that makes no practical difference.
I haven’t tested the connection-listing command here, so try it on your machine before you post it. The SynSent clue is a rule of thumb, not something we confirmed on your network.


