Run Reset-WindowsUpdate.ps1
This PowerShell script stops Windows Update services, renames the update cache folders so Windows can rebuild them, clears stuck BITS queue files, restarts the services, then searches for available updates. Use it on Windows 10 or Windows 11 when updates are stuck, looping, or failing with a cache-related error.
Must run as Administrator. A reboot is recommended afterward.
Step 01
Download the script
Click Download Reset-WindowsUpdate.ps1. Save it somewhere easy to find — Downloads is fine.
Step 02
Open PowerShell as Administrator
- Press the Windows key, type PowerShell.
- Right-click Windows PowerShell (or Terminal) and choose Run as administrator.
- Approve the User Account Control prompt if Windows asks.
Step 03
Allow the script to run (if Windows blocks it)
Downloaded scripts are often marked as blocked. In the same elevated PowerShell window, go to the folder that holds the file, then unblock it:
cd $env:USERPROFILE\Downloads Unblock-File .\Reset-WindowsUpdate.ps1
If the file is somewhere else, change the
cdpath to match.Step 04
Run the script
.\Reset-WindowsUpdate.ps1
When it asks Continue? (Y/N), type Y and press Enter. Watch the five steps: stop services, rename cache folders, clear BITS data, restart services, then check for updates.
Step 05
Reboot, then check Windows Update
- Restart the computer when the script finishes.
- Open Settings → Windows Update and click Check for updates.
- If the same error returns, note the error code and call Shane at (603) 556-4055 so he can dig in remotely.
What the script touches
- Stops BITS, Windows Update, Cryptographic Services, and Application Identity.
- Renames SoftwareDistribution and catroot2 with a dated
.baksuffix so Windows can rebuild them. - Removes stuck BITS queue files when present.
- Restarts those services and lists available updates (it does not install them).
