Skip to content

windows_update_access_restore.ps1

Corey Watson edited this page Dec 1, 2025 · 1 revision

windows_update_access_restore.ps1

Removes the SetDisableUXWUAccess registry key to restore user access to Windows Update settings in the Settings app.

Overview

This script restores user access to Windows Update settings by removing the registry key that blocks access. It is designed for unattended execution in RMM environments.

Purpose

Removes the SetDisableUXWUAccess registry key to restore user access to Windows Update settings in the Settings app.

Prerequisites

  • Windows 10/11
  • Administrator privileges

Configuration

Required Inputs

None

Behavior

  1. Checks for SetDisableUXWUAccess registry key
  2. Removes it if present
  3. Reports result

Security Notes

  • No secrets in logs
  • Modifies Windows Update policy registry

Exit Codes

  • 0 = Success (key removed or didn't exist)
  • 1 = Failure

Example Output

[ CHECKING REGISTRY ]
--------------------------------------------------------------
Registry Path        : HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
Key Name             : SetDisableUXWUAccess
Current State        : Key exists (value: 1)

[ REMOVING KEY ]
--------------------------------------------------------------
Result               : Key removed successfully

[ FINAL STATUS ]
--------------------------------------------------------------
Users can now access Windows Update settings.
SCRIPT SUCCEEDED

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps

Links

Clone this wiki locally