Last Updated: January 28, 2019
·
1.514K
· alvarogarcia7

Always run cmd.exe as administrator

To always run the cmd (or any program) as administrator in Windows 7, modify the regedit as follows:

* Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers (create if necessary)
*Create a Key-value
  *for the key, the full path: i.e. C:\Windows\System32\cmd.exe (no quotes)
  *for the value, RUNASADMIN (no quotes either)

That can be extended to other programs too

Source: http://superuser.com/questions/453409/how-can-i-always-run-the-command-prompt-as-administrator/563842#563842