Monday, October 10, 2011

Enable or Disable UAC From the Windows 7 / Vista Command Line

Its always fun to work with command prompt in Windows. It always make you feel smarter in front of your customers. Back days I had talked about how to uninstall programs using Command Prompt, so keeping the trend going ahead I will be discussing on how to enable or disable UAC (User Access Control) using Command Prompt in Windows 7 and Vista.

All you need to do is fire up your command prompt with administrative rights. For doing so, simply right click on cmd.exe and choose Run as Administrator. Once you have the command box on your screen you are ready to geek.

Disable UAC

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

Disable UNC

Enable UAC

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

Enable UNC

After you enable or disable UAC, you will have to reboot your computer for the changes to take effect.

However do not forget to backup your Windows Registry settings before updating registry using command prompt.

0 comments:

Post a Comment