Windows 10 – How to Open Application as Administrator from Pinned Items

taskbarwindows 10

I added a shortcut to the taskbar pinning it and set its properties to run as administrator.
This works fine as long as I launch the application itself.
Some applications (such as Visual studio 2015) add a list of recently used documents to the pinned icon, for quicker access. I notice that clicking on a recent document, my application does NOT run as administrator.

Is there a way to make the pinned application to run as administrator also when launched by clicking on a recently used item in the list that appears by right-clicking on the pinned application icon?

Thanks!

Best Answer

For Windows 10 and Visual Studio 2017, I followed the directions from other posts and it solved the issue.

Can you force Visual Studio to always run as an Administrator in Windows 8?

I imagine this works for other programs that do not have a Compatibility tab in the properties window.

  1. Right-click Visual Studio 2017 icon in the taskbar.
  2. Right-click "Visual Studio 2017" and choose "Properties"
  3. On the Shortcut tab, click "Open File Location"
  4. Right-click devenv.exe and select "Troubleshoot compatibility".
  5. Select "Troubleshoot program"
  6. Check "The program requires additional permissions"
  7. Click "Next"
  8. Click "Test the program..."
  9. Wait for the program to launch (you might be asked to run as admin, click yes)
  10. Click "Next"
  11. Select "Yes, save these settings for this program"
  12. Click "Close"

Disclaimer: as @EricHirst points out, Visual Studio will ALWAYS run as Administrator with this solution. Please weigh security concerns against convenience before implementing this change.

Related Question