Setting to 0 is the equivalent of dragging the bar down to “Never Notify” in User Account Control Settings (C:\Windows\System32\UserAccountControlSettings.exe). If you later set this registry value back to 1, it will restore back to what it was previously configured as.

How do I set the level of UAC from registry?

It remembers what was previously configured as the level of UAC is dictated by multiple keys, not just “EnableLUA”.

The different combination of values for the below keys achieves different levels of UAC:

Why edit the registry when you can set group policies?

May be easier if OU structure is a mess and don’t want to apply to all domain clients

You are local admin and want to modify your UAC levels for whatever reason not using the GUI

Altering these values in the registry does not prohibit future alterations in the GUI from C:\Windows\System32\UserAccountControlSettings.exe or gpedit.msc – tried and testing on domain joined Windows 7 Enterprise so I suggest you test before deploying too.

Example scripts

The example VB script modifies UAC in the registry back to default “Level 3” if it is disabled, ie “Never notify”. It also wouldn’t be me if I didn’t write something in Python, it is the same as the VB script in that it sets UAC back to “Level 3” if it is disabled.

Alternatively, you can create a simple .reg file where it’s a simple double click to run. The below modifies the reg again back to default “Level 3” regardless of UAC’s current state.