View all Worklets
Windows

Reset Windows Update Settings

Resets Windows Update settings and clears cookies regularly.

Worklet Details

Why you would use the Reset Windows Update Settings Worklet?

The Reset Windows Update Settings Worklet helps apply Windows Update service updates and patches to your operating system. These Windows updates often include security fixes, bug fixes, performance improvements, and new features. By resetting Windows Update settings, you’re making sure the service is working correctly and can deliver updates effectively.

Over time, the Windows Update components on your system can become corrupted or misconfigured, leading to issues with the update process. This can result in failed updates, error messages, or the inability to install new updates. Resetting Windows Update settings helps to fix these component-related problems by restoring them to their default state.

By resetting Windows Update settings, you can resolve common issues such as update failures, error codes, slow update downloads, or stuck update installations. You can also repair corrupted system files and fix Windows update errors. Keeping your system up to date by regularly checking and resetting Windows Update settings can help maintain the stability and reliability of your Windows operating system.

How to reset Windows Update Settings with this PowerShell Worklet

The  Reset Windows Update Settings Worklet will reset all of the Windows Updates components to DEFAULT SETTINGS, clean up some files related to Windows Update, notify the user that a reboot will occur in 15 minutes (this can be modified), and provide a final warning at 5 minutes.

Five variables are used to define the messages for user notifications as well as the timers associated with them.

1. $rebootimer

This is the first reboot countdown timer in seconds. The default setting is 900 seconds (15 min). This timer should be set long enough for users to save and close applications.

2. $message1

This message is displayed to the user regarding the reboot. Include the amount of time set (in minutes) for $rebootimer.

3. $message2wait

This is the amount of time to wait before displaying the second notification message (in seconds).

4. $rebootimer2

This is the second and final reboot timer. By default, the value is set to 300 seconds (5 minutes).

5. $message2

This is the final message displayed to the user before forcefully restarted. Include the amount of time set (in minutes) for $rebootimer2.

Note: This Worklet is recommended to be run OnDemand due to the forced reboot of the device. This Worklet can be run as an evaluation policy, and will always be set to remediate on the schedule provided in the console.

View in app

Consider Worklets your easy button

What's a Worklet?

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.

do more with worklets