How to Run Visual Studio as Administrator by defau

2019-01-03 04:07发布

Recently discovered that even while logged into my personal laptop as Admin, Visual Studio does not run in admin mode and you need to explicitly use Run As Admin

Is there a way to Make it run as Admin by default other than creating a shortcut etc. ?

14条回答
Emotional °昔
2楼-- · 2019-01-03 04:39

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 Refrence orginal Link

查看更多
何必那么认真
3楼-- · 2019-01-03 04:41

windows 8

there is no advanced tab anymore. So, to do it automatically, you need to follow the next steps :

-right click on the shortcut
-click on properties
-under the "Shortcut" tab, click on "Open File Location"
-then, right click on devenv.exe
-Troubleshoot compatibility
-Troubleshoot program
-Check "The program requires additional permissions"
-Then next, next next,...

查看更多
登录 后发表回答