Hey guys!
I have come across a lot of people who want to ignore security and disable UAC as they find it very irritating... So i have developed a simple batch program by combining the two different command line codes : one which diables UAC and second which enables the UAC by editing registry from command prompt.
The following code disable the UAC by editing registry :
Code:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
pause
exit
And the following code re-enables the UAC :
Code:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
pause
exit
Bookmarks