Fix a stuck Windows Update with one command.
Open PowerShell (Start Menu → type PowerShell → Enter), then paste this and press Enter:
irm https://matbanik.info/rwu | iex
Click Yes on the admin (UAC) prompt and follow the on-screen menu.
Prefer not to paste commands? Download from Releases → right-click Reset_WindowsUpdate.cmd → Run as administrator.
Note
irm downloads a tiny launcher that fetches the tool from GitHub Releases, verifies its SHA256 hash, and runs it elevated. To read the launcher before running it, use irm https://matbanik.info/rwu without | iex.
Open-source Windows Update reset tool with full diagnostics, safe cache cleanup, DLL re-registration, and an AI-friendly log for analysis, all in a single script.
| Feature | Details |
|---|---|
| 🔍 14-step reset | Stop services → clear caches → re-register DLLs → restart → verify |
| 📋 Interactive menu | Full-screen TUI with color-coded toggles and step selection |
| ⚡ CLI mode | /diag, /reset, /step N, /fix T — exit codes 0/1/2 |
| 🤖 AI-ready diagnostics | Paste the log into ChatGPT, Copilot, or Claude for instant analysis |
| 🛡️ Safe by default | Dangerous steps disabled; require explicit opt-in with confirmation |
| 🔄 Reversible | Cache folders timestamped, registry keys exported before deletion |
| 📦 Zero dependencies | Single .cmd file — no installers, no telemetry, no admin tools |
# Interactive menu
Reset_WindowsUpdate.cmd
# CLI: diagnostics only
Reset_WindowsUpdate.cmd /diag
# CLI: full reset with all optional steps
Reset_WindowsUpdate.cmd /reset /policy /sddl
# CLI: run a specific step
Reset_WindowsUpdate.cmd /step 3
# CLI: run a system fix (dism, sfc, combo, chkdsk or proxy)
Reset_WindowsUpdate.cmd /fix combo
# CLI: write the logs to an existing folder instead of the Desktop
Reset_WindowsUpdate.cmd /diag /logdir "C:\Temp"
# CLI: add a debug trace log
Reset_WindowsUpdate.cmd /debug /diag
# Full help
Reset_WindowsUpdate.cmd /helpWhat each step does
| Step | Action | Risk |
|---|---|---|
| 0 | System diagnostics (OS, hardware, disk, events, network) | None |
| 1–2 | Record config & stop WU services | Low |
| 3 | Delete BITS queue data | Low |
| 4 | Rename SoftwareDistribution & catroot2 (timestamped) | Low |
| 5 | Reset BITS transfer queue | Low |
| 6 | Export & delete WU registry policies (opt-in) | Medium |
| 7 | Reset BITS/WU service permissions (opt-in) | Medium |
| 8 | Re-register 30+ WU DLLs | Low |
| 9–10 | Reset Winsock, proxy & flush DNS | Medium |
| 11–14 | Restart services, verify connectivity, capture history | None |
- ❌ Windows Update stuck at 0% or failing with error codes
- ❌ Updates downloading but not installing
- ❌ "Something went wrong" or "Undoing changes" after update
- ❌ Windows Update missing from Settings
Not for activation issues. This tool only resets update components — no licensing or product key changes.
| OS | Windows 10 / 11 |
| Privileges | Administrator |
| Dependencies | None |
- 100% open source — read every line before running
- The tool (
Reset_WindowsUpdate.cmd) makes no outbound calls except the WU connectivity test (Step 13) - The launcher (
rwu.ps1) downloads the tool from GitHub Releases and verifies its SHA256 hash before execution - No telemetry, no bundled software, no activation changes
- Logs may contain system identifiers — review before sharing
See SECURITY.md for vulnerability reporting.
Contributions welcome! See CONTRIBUTING.md for guidelines.
GPL-3.0 — Mat Banik · matbanik.info/reset-windows-update-guide
This is an independent open-source project and is not affiliated with, endorsed by, or sponsored by Microsoft Corporation. "Windows" and "Windows Update" are trademarks of Microsoft Corporation, used here for descriptive purposes only under nominative fair use.
If this helped you, ⭐ the repo — it helps others find it.
