20

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!

2
  • Have you tried setting the .exe itself to run as Administrator via the compatibility options? Dec 10, 2015 at 10:55
  • Unlike on Windows 7, in Windows 10 I cannot find any compatibility options in the executable properties. Dec 10, 2015 at 11:13

2 Answers 2

21

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.

4
  • Great solution, should be marked as the answer.
    – Ian
    Jun 29, 2017 at 5:50
  • 1
    ha! i came here exactly for VS2017 pro! thanks man!
    – michael g
    Mar 3, 2018 at 5:00
  • Why is this not the solution? May 15, 2018 at 12:01
  • I don't really like this solution, for Visual Studio at least. It forces you to run as admin for everything you do in Visual Studio, which opens security holes especially if you ever pull anything open source down from the internet. Then, when you try to roll it back, you get the "Unrecognized Guid format" issue described in stackoverflow.com/q/39885782/2055511. I'd like to see an answer that was specific to individual .sln files in the MRU list. I don't know if such an answer exists however.
    – Eric Hirst
    Mar 4, 2019 at 22:44
10

If you open the properties of the EXE itself there is an option on the compatibility tab called Run this program as an administrator. If you tick this and apply it, any new shortcuts you create from this will launch as administrator.

Screenshot of the properties window

9
  • 1
    On windows 10 I haven't got this option for all programs. Although it appears for, let's say, Chrome, for other programs (e. g. Visual Studio 2015) I have only the "General", "Digital signature", "Security", "details" and "Previous version" tabs. Dec 10, 2015 at 13:12
  • 1
    Is your computer on a domain? the available tabs might be administered through group policy or other domain function.
    – Burgi
    Dec 10, 2015 at 13:19
  • Yes, I am. So that may be the cause of it: I'll ask the system administrators. Thanks! Dec 10, 2015 at 13:24
  • You can get your sysadmin to add your domain user to the "local admin" group on the local PC that should give you the required admin rights without messing about with network level security policies.
    – Burgi
    Dec 10, 2015 at 13:27
  • In "Computer management", "Local users and groups", "Groups", if I double-click on "Administrators" I can see my name. Maybe the problem is somewhere else... Dec 10, 2015 at 13:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .