Sometimes when you are remotely managing a workstation it can be easier to perform tasks in the background using the command prompt.  Here’s how to turn UAC On and Off.

How to Turn UAC On from the Command Prompt

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0x5 /f

How to Turn UAC Off from the Command Prompt

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0x0 /f