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":
Select "Troubleshoot compatibility" :
Select "troubleshoot program":
- 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.
- Right click on the shortcut of the program, then click on Properties.
- Click on the Shortcut tab for a program shortcut, then click on the Advanced button.
- Check the 'Run as administrator' box, and click on OK.
- Click on OK.
- Open the program.
- 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.