Enable/Disable UAC | Windows 7


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /homepages/40/d806441738/htdocs/clickandbuilds/edwardsd/work/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /homepages/40/d806441738/htdocs/clickandbuilds/edwardsd/work/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

I’ve been having some problems trying to enable UAC and spent some time trying to resolve this, starting a technet post to help. My preference would be to use Group Policy (GPO) to enable this, however experienced issues with the UAC not being fully functional (no admin elevation prompts). Unfortunately I never really got to the bottom of the issue., however as a workaround used the following script in a *.bat file to disable it in the registry.

Enable UAC (via *.bat)

%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

Disable UAC (via *.bat)

%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Problems with GPO (technet):  Enable UAC via GPO | Windows 7

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.