How do I run Visual Studio as an administrator by default?

Kumar picture Kumar · Mar 11, 2012 · Viewed 268.6k times · Source

I recently discovered that even while logged into my personal laptop as an administrator, Visual Studio does not run in administrator mode and you need to explicitly use Run As Administrator.

Is there a way to make it run as an administrator by default, other than creating a shortcut, etc.?

Answer

hamid reza mansouri picture hamid reza mansouri · Mar 11, 2012

Copied and pasted from here, the Using Advanced Properties section. This will allow you to always have the program run as an administrator when you open it.

Windows 7:

  1. Right click on the shortcut of the program, then click on Properties.
  2. Click on the Shortcut tab for a program shortcut, then click on the Advanced button.
  3. Check the 'Run as administrator' box, and click on OK.
  4. Click on OK.
  5. Open the program.
  6. If prompted by UAC, then click on Yes to apply permission to allow the program to run with full permission as an Administrator.

NOTE: If you are doing this is while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.

Update: (2015-07-05)

Windows 8, 8.1 and 10

In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility".

  1. Select "Troubleshoot program"

  2. Check "The program requires additional permissions" click "Next", click "Test the program..."

  3. Wait for the program to launch

  4. Click "Next"

  5. Select "Yes, save these settings for this program"

  6. Click "Close"

Update reference original Link