-
Notifications
You must be signed in to change notification settings - Fork 5
windows_update_access_toggle.ps1
Corey Watson edited this page Dec 1, 2025
·
1 revision
Toggles user access to Windows Update settings in the Settings app.
This script toggles user access to Windows Update settings. If access is currently blocked, it will be enabled. If access is currently allowed, it will be blocked.
Toggles user access to Windows Update settings in the Settings app. If access is currently blocked, it will be enabled. If access is currently allowed, it will be blocked.
- Windows 10/11
- Administrator privileges
None
- Checks current state of SetDisableUXWUAccess registry key
- Toggles the state (add/remove key)
- Reports new state
- No secrets in logs
- Modifies Windows Update policy registry
- 0 = Success
- 1 = Failure
[ CHECKING CURRENT STATE ]
--------------------------------------------------------------
Registry Path : HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
Key Name : SetDisableUXWUAccess
Current State : Access ALLOWED (key not present)
[ TOGGLING STATE ]
--------------------------------------------------------------
Action : Blocking access
Result : Key created with value 1
[ FINAL STATUS ]
--------------------------------------------------------------
New State : Access BLOCKED
Users cannot access Windows Update settings.
SCRIPT SUCCEEDED
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps
- View Script Source
- Scripts - Back to script index