Cari Blog Ini

Diberdayakan oleh Blogger.

Disable and Enable UAC in Command Prompt

Posted by Tips Komputer Bagus

Command Prompt
Normally we never recommend disabling User Account Control (UAC) prompts--considering UAC actually does a great job blocking malicious software and people. However, we understand that in some situations UAC is better changed to temporarily disabled. For instance, disabling UAC before running software developments on a machine could help with automation. Manually disabling UAC before such a task and re-enabling it afterwards can be cumbersome. Luckily, just just adding the following commands to a script can speed things along.


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

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

If this is used in a script, the script of command prompt will need to be run as an administrator. Our suggestion is to create a script to do what you want, add disable UAC to the top of the script, and enable UAC at the bottom. That said, always remember to re-enable UAC.


Related Post



Posting Komentar