LIMEHAWK - Managed IT
Windows Update Reset — automation
dateNov 29, 2024
statusRESOLVED
Incident

HR director's laptop stuck in reboot loop for 6 hours. Windows 11 24H2 feature update would install to 47%, then roll back with "We couldn't complete the updates. Undoing changes." Machine unusable during benefits enrollment deadline. Windows Update troubleshooter did nothing. DISM couldn't find source files. Every standard fix failed.

Assessment
update failure24H2 failing consistently at 47%
error code0x80070002 - "file not found"
disk space89GB free - not a space issue
SoftwareDistribution12GB corrupted download fragments

User had force-restarted during a previous update attempt two weeks ago. That interrupted update left behind corrupted component store entries poisoning every subsequent update attempt.

What We Tried First
WU Troubleshooter — "components must be repaired" - did nothing
DISM /RestoreHealth — failed 0x800f081f - no source files
SFC /scannow — found corrupt, couldn't fix without DISM
delete SoftwareDistribution — service wouldn't stop
safe mode cleanup — corruption had spread to catroot2 and BITS

Corruption had cascaded. Partial fix attempts made it worse. Needed to reset everything at once - services, caches, DLL registrations, security descriptors, network stack. The nuclear option.

Solution

Booted to Safe Mode with Networking, connected via RMM, ran this script. Same procedure Microsoft support would walk through over 2 hours - automated in 90 seconds.

What Each Phase Does
1. stop servicesBITS, wuauserv, appidsvc, cryptsvc
2. flush DNSclears stale Microsoft update server entries
3. clear QMGR datapurges corrupted BITS download queue
4. rename SoftwareDistributionforces rebuild of download cache
5. rename catroot2resets signature verification database
6. reset securityrestores default permissions
7. re-register DLLsfixes 15 critical COM registrations
8. reset Winsockclears network catalog corruption

Why Safe Mode: Ensures no third-party software holds locks on WU components. Also prevents update service from auto-restarting mid-reset.

Outcome
total time to fix2 hours 13 min (including failed tries)
script runtime87 seconds
deadline metyes (47 minutes to spare)

Script completed, rebooted to normal mode, waited 10 minutes for Windows to rebuild update database. 24H2 feature update downloaded fresh, installed successfully on first attempt.

force-restarting during updates creates spreading corruption
when DISM can't find sources, component store itself is corrupted
nuclear reset resolves ~90% of failures that resist standard fixes
run in Safe Mode to avoid service lock conflicts
Get Help

Windows Update issues across your fleet? We deploy automated diagnostics and fixes that resolve failures without manual intervention.