Home » All » Security » Vista » Windows | All Categories

Published on 03.06.07 by Brent Trahan

Disable or Enable UAC from the Command Prompt

Quickly disable or enable User Account Control (UAC) from the command prompt.

Introduction

This guide shows you how to quickly enable or disable UAC from the command prompt.

Why You Should NOT Disable UAC

User Account Control (UAC) is meant to protect you from malware, hackers, and yourself. Disabling UAC gives accounts with administrative privileges admin privileges all the time instead of only when needed and lots of other security features.

If you disable UAC don’t complain if your Windows Vista computer gets malware, hacked, or broken by yourself.

Disable UAC from the Command Prompt

  1. Type cmd in the search box in the Start Menu.
  2. Right-click cmd in the search results and select to Run as administrator.
  3. Type the following in the command prompt and press enter:

    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

  4. Restart your computer.

Enable UAC

To enable UAC simply type the following in the command prompt or search box in the Start Menu and press enter:

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

Still need help? Ask your computer question now.

Related Guides:

3 Responses to “Disable or Enable UAC from the Command Prompt”

Subscribe to this guide's comments RSS feed.

  1. This_Guy says:

    When I do it, it comes up with an error “ERROR: Access is Denied.”

  2. dewi says:

    BTW K2 “”
    it’s a way to enable/disable UAC automatically via cmd,,,
    well if we’re going to turn off password protected sharing automatically through cmd it how??
    thnks …….

  3. dewi says:

    BTW K2 “”
    it’s a way to nurunin UAC automatically via cmd,,,
    well if we’re going to turn off password protected sharing automatically through cmd it how??
    thnks …….

Leave a Reply

Subscribe to this guide's comments RSS feed.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2014 Brent Trahan. All rights reserved.