-
Notifications
You must be signed in to change notification settings - Fork 5
windows_update_reset.ps1
Corey Watson edited this page Dec 24, 2025
·
2 revisions
Completely reset Windows Update components.
Completely resets Windows Update components by stopping services, clearing caches, resetting security descriptors, re-registering DLLs, and restarting services. Fixes most Windows Update problems.
Provides comprehensive Windows Update repair for systems experiencing update failures, stuck updates, or corruption in the update subsystem.
- Windows 10/11
- Admin privileges required
- Internet connectivity for updates after reset
- RebootAfterReset: Whether to reboot after reset (default: $false)
- Stops: BITS, wuauserv, appidsvc, cryptsvc
- Clears: SoftwareDistribution, catroot2, QMGR data
- Resets: BITS and wuauserv security descriptors
- Registers: 30+ Windows Update related DLLs
- Resets: Winsock
- Stops all Windows Update related services
- Flushes DNS cache
- Clears BITS download queue data
- Renames SoftwareDistribution and catroot2 folders
- Resets Windows Update policies in registry
- Resets BITS and wuauserv security descriptors
- Re-registers all Windows Update DLLs
- Resets Winsock
- Restarts all services
- Optionally reboots system
- No secrets in logs
- Modifies system registry and service configurations
- Creates .bak folders for recovery
- 0: Success
- 1: Failure
[ INPUT VALIDATION ]
--------------------------------------------------------------
Reboot After Reset : False
[ STOPPING SERVICES ]
--------------------------------------------------------------
Stopping BITS...
Stopping wuauserv...
Stopping appidsvc...
Stopping cryptsvc...
[ CLEARING CACHES ]
--------------------------------------------------------------
Flushing DNS...
Clearing QMGR data...
Renaming SoftwareDistribution...
Renaming catroot2...
[ RESETTING COMPONENTS ]
--------------------------------------------------------------
Resetting security descriptors...
Re-registering DLLs...
Resetting Winsock...
[ STARTING SERVICES ]
--------------------------------------------------------------
Starting BITS...
Starting wuauserv...
Starting appidsvc...
Starting cryptsvc...
[ RESULT ]
--------------------------------------------------------------
Status : Success
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- v1.0.0 (2025-11-29): Initial Style A implementation
- View Script Source
- Scripts - Back to script index