How to Run Visual Studio Permanently as Administrator
On one device I run constantly into problems with Visual Studio because my user does not have all the rights necessary to perform the tasks I have to do. The simple work around for this problem is to run Visual Studio as an administrator. While I can start Visual Studio explicit as administrator every time I open a project, but that extra step gets annoying quickly.
To permanently run Visual Studio as an administrator in Windows 10 you can follow these steps:
- Go to your Visual Studio installation folder (something like "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\")
- Right-click on devenv.exe and select "Troubleshoot compatibility":

- Select "Troubleshoot program"

- Check "The program requires additional permissions”:

- Click "Next"
- Click "Test the program..."

- Wait for Visual Studio to start - the User Account Control may ask you to approve this change
- Click "Next"
- Select "Yes, save these settings for this program" and wait until it finishes:

- Click "Close":

From now on Visual Studio opens as administrator all the time – at least until you update Visual Studio. Depending on what changes with the update, you need to repeat this sequence to keep running Visual Studio as administrator.
