windows_update_access_restore.ps1 - limehawk/rmm-scripts GitHub Wiki
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
- Checks for SetDisableUXWUAccess registry key
- Removes it if present
- 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
- View Script Source
- Scripts - Back to script index