Resets Windows Update components and optionally repairs system files with SFC scans
This Automox Worklet™ resets all Windows Update components to their default state and optionally scans system files for corruption. The Worklet stops Windows Update services, clears the SoftwareDistribution and Catroot2 folders, re-registers Windows Update DLLs, resets network components (WinSock and WinHTTP), clears Background Intelligent Transfer Service (BITS) jobs, and restarts services to force detection of available updates.
When SFC scanning is enabled (the default), the Worklet first runs sfc /scannow to identify and repair corrupted system files that may interfere with Windows Update functionality. This takes 15-30 minutes but addresses root causes of persistent update failures.
The evaluation script flags endpoints for remediation by detecting Windows Update service failures, large SoftwareDistribution folders over five gigabytes, BITS service issues, or recent update errors in the system event log within the last seven days.
Windows Update components degrade over time due to failed updates, corrupted registry entries, orphaned service files, or incomplete installations. When this happens, endpoints cannot receive critical security patches, bug fixes, and feature updates. Update failures expose your organization to known vulnerabilities and compliance violations.
Manually troubleshooting each endpoint is time-consuming and inconsistent. By automating this process, you quickly restore update functionality across hundreds of endpoints simultaneously. SFC scanning adds another layer of protection by repairing system file corruption that causes update failures in the first place.
Running this Worklet as part of regular maintenance prevents update issues before they disrupt operations. Endpoints remain current with security patches without manual intervention, reducing your security risk and support costs.
Evaluation phase: The Worklet checks for Windows Update service health, BITS service status, abnormally large SoftwareDistribution folder size, corrupted system files in CBS.log, and recent Windows Update errors in the system event log. If enabled, it can also scan for system file corruption indicators.
Remediation phase: The Worklet optionally runs sfc /scannow to repair corrupted system files, then stops Windows Update services (wuauserv, BITS, appidsvc, cryptsvc). It removes the QMGR data file, renames SoftwareDistribution and Catroot2 folders to .bak, deletes the old WindowsUpdate.log, resets service permissions, re-registers 35 Windows Update-related DLLs, removes WSUS client settings, resets network components (WinSock and WinHTTP proxy), clears all BITS transfer jobs, restarts services, and forces Windows Update detection.
Windows 7 or later (Windows 10, Windows 11, Windows Server 2008 R2, and newer are fully supported)
PowerShell 2.0 or later
Administrator privileges required (necessary for registry modifications, service management, and file operations)
Sufficient disk space to temporarily store renamed SoftwareDistribution and Catroot2 folders
System restart recommended after remediation, especially if SFC repairs files
RunNow/FixNow compatible for on-demand execution
After successful remediation, the Windows Update service resumes normal operation with all components reset to default configuration. The endpoint immediately detects available updates and can begin downloading them. If SFC found and repaired corrupted system files, the endpoint shows SFC status as Repaired, indicating that file integrity has been restored. Event logs will show a new Windows Update detection cycle starting. You can verify this change through the Automox Activity Log or by checking the endpoint configuration directly.
Verify success by checking that Windows Update service is running, the SoftwareDistribution folder is no longer excessively large (below five gigabytes), and no recent errors appear in the system event log. If SFC repaired files or detected issues it could not repair, a system restart completes the remediation process and allows the endpoint to benefit fully from the reset components.
Run this Worklet on a pilot Windows endpoint and review evaluation output for reset windows update settings.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as Write-Output, Get-Service, Test-Path.
Validate remediation effects from script operations such as Write-Log, Get-Date, Write-Output, then rerun evaluation for compliance.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy