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

Try the following steps on Windows 10:

  • Search for Visual Studio on the Start window and select "Open file location":

    enter image description here

  • Select "Troubleshoot compatibility" :

    trouble shoot

  • Select "troubleshoot program":

    tobleshoot

    • Raise permissions:

    raise permissions

  • Select "Yes, save these settings for this program"

  • Select "Close"

Once that is done, Visual Studio should be running as administrator.


Right click on the application, Props -> Compatibility -> Check the Run the program as administrator


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.

  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.