Skip to main content

Set Windows Update Registry Values

Summary

The script is designed to remove any additional registry values from the registry path Computer/HKEY_LOCAL_MACHINE/SOFTWARE/Policies/Microsoft/Windows/WindowsUpdate/AU. Additionally, it ensures that the values for the keys NoAutoRebootWithLoggedOnUsers and NoAutoUpdate are set to 1.
Image

CW Support recommends setting these registry keys on the local device to ensure that patching and rebooting occur properly from CW RMM.

Furthermore, the script will ensure that patching access is not disabled for the System account by making the necessary registry changes.

Sample Run

Image Image

Task Creation

Create a new Script Editor style script in the system to implement this task.
Image
Image

Name: Set Windows Update Registry Values
Description: Set required registry values to enable Windows updates from CW RMM.
Category: Patching
Image

Task

Navigate to the Script Editor section and start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.
Image

A blank function will appear.
Image

Row 1 Function: PowerShell Script

Search and select the PowerShell Script function.
Image Image

The following function will pop up on the screen:
Image

Paste in the following PowerShell script and set the expected time of script execution to 600 seconds. Click the Save button.

PowerShell Script

Image

Row 2 Function: Script Log

Add a new row by clicking the Add Row button.
Image

A blank function will appear.
Image

Search and select the Script Log function.
Image

Image

The following function will pop up on the screen:
Image

In the script log message, simply type %output% and click the Save button.
Image

Click the Save button at the top-right corner of the screen to save the script.
Image

Completed Task

Image

Output

  • Script log

Changelog

2025-04-10

  • Initial version of the document