How to turn off "Always run as administrator" Windows 8/10?

98,696

Okay, I think I've worked this one out...:

  1. Right-Click on the executable (in my case: %programfiles%\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe)
  2. Choose "Troubleshoot compatibility"
  3. Click "Troubleshoot program"
  4. Uncheck any and all checked items
  5. Click "Next"
  6. Choose "No, I have finished investigating the problem - undo any changes made and clear all settings"
  7. Click "Next"
  8. Click "Close the troubleshooter"

If necessary, go back in and set any other compatibility options again.

For some reason, it wasn't saving my removal of "The program requires additional permissions", unless I chose to completely remove all compatibility settings. Therefore step 4 is the bit I was getting wrong before.

Share:
98,696

Related videos on Youtube

m-smith
Author by

m-smith

Updated on September 18, 2022

Comments

  • m-smith
    m-smith over 1 year

    I followed these instructions (https://stackoverflow.com/questions/12257110/can-you-force-visual-studio-to-always-run-as-an-administrator-in-windows-8) to force my Visual Studio 2012 to always run as administrator in Windows 8:

    1. Select "Troubleshoot program"
    2. Check "The program requires additional permissions"
    3. Click "Next"
    4. Click "Test the program..."
    5. Wait for the program to launch
    6. Click "Next"
    7. Select "Yes, save these settings for this program"
    8. Click "Close"

    However, now I want to undo this and make it run as my account (i.e. without elevated permissions). How can I achieve this?

    For those interested, the reason I want to go back is because some features (such as drag-and-drop files into VS, open files from Windows Explorer, etc.) no longer work.

  • Robert Petz
    Robert Petz almost 10 years
    I'm a big fan of windows 8 - but this is ridiculous...thanks for the workflow though, I couldn't figure this out for the life of me
  • Dan
    Dan over 9 years
    I came to this same solution on my own. Seemed to work, but definitely a perverted workflow.
  • razer
    razer over 8 years
    Do you know what registry flag this sets?
  • goku_da_master
    goku_da_master almost 8 years
    Finally! This fixed a nuget issue for me when accessing certain mapped/network drive locations. The error I was getting was: the path for the selected source could not be resolved
  • m-smith
    m-smith about 6 years
    @RichardPetheram thanks, I've amended the question to include tag and heading for Windows 10.
  • Triynko
    Triynko over 4 years
    This used to be a clear setting. A simple checkbox that we could say "run as administrator" or not. This troubleshooting "wizard" is asinine. This is the garbage that results from catering to the lowest common denominator. It's not more usable in any sense of the word. At the very least, keep the compatibility tab alongside the wizard. Worst of all, most executables still have the compatibility tab, but for some unknown reason, it's missing from some executables like devenv.exe.
  • Hashbrown
    Hashbrown over 2 years
    For some reason Powershell is always running as Administrator, I've never set it and the troubleshoot option doesn't appear for the .exe in system32, is there another way to set the flag or a way to programatically invoke the compatibility troubleshooter on a specific .exe?
  • m-smith
    m-smith over 2 years
    @Hashbrown perhaps the shortcut you're using is set to run as Administrator? See: stackoverflow.com/a/12160567/515857
  • Hashbrown
    Hashbrown over 2 years
    @m-smith No shortcut