Madhur: This is the nice trick I found out this weekend to disable the User Access Control on Vista without making a system restart.
Although I would never recommend disabling UAC, it’s a great security feature, but sometimes programmers might want to disable it otherwise
Debugging becomes pain especially with WinDbg.
The solution is to run the following command to add the appropriate key to the registry:
reg ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f
It can be enabled again through:
reg ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 2 /f
|