VS2017 / VS 2019 Run As Admin from taskbar

Paul0515 picture Paul0515 · Mar 10, 2017 · Viewed 20.3k times · Source

I would like to run Visual Studio 2017/2019 as admin when I select a project from the recent list in the taskbar, ie. when opening a project via Explorer/Shell shortcuts.

I did use the setting: properties -> shortcut -> advanced -> run as admin checkbox.

Unfortunately, this does not result in devenv running as Administrator.

Any ideas on how to fix this?

Answer

Steve Kennedy picture Steve Kennedy · Mar 10, 2017
  1. Close all instances of Visual Studio
  2. Right click on the Visual Studio 2017/2019 icon in your task bar
  3. Right click on Visual Studio 2017/2019 and click Properties
  4. Click open File Location button
  5. Right-click devenv.exe file in that folder appears
  6. Select Troubleshoot compatibility
  7. Select Troubleshoot program
  8. Select The program requires additional permissions
  9. Click Test the program and wait for the program to launch
  10. Then click Next button
  11. Select Yes, save these settings for this program
  12. Click Close
  13. Reopen your project from recent list