6

There are many posts that tell you how to run Visual Studio 2010 as Administrator.
I will probably be very ashamed when I find my answer but...
My problem is that I can't start Visual Studio NOT elevated!

I always have the "(Administrator)" text on the title.
I want to be able to debug my application in a non-elevated environment.

I have no shortcut/application file that is marked with "Run As Administrator".
Not Devenv.exe and not VSLauncher.exe not shortcuts at Start Menu.. nothing is marked like this and still Visual Studio runs as Administrator.

My user belongs to the local Administrators group.. but that didn't use to enable this administrator mode.
UAC is disabled but this too didn't matter once.

Also checked

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

and removed Visual Studio from the list. Nothing.

Any idea will be appreciated.

Jony Adamit
  • 3,178
  • 35
  • 44

3 Answers3

2

I turned UAC back on and what a surprise... Visual Studio runs in normal mode again!
Thanks again Microsoft, for making things very clear...

Jony Adamit
  • 3,178
  • 35
  • 44
  • Could you clarify how to turn UAC back on? I am stuck in Admin mode as well – otgw Jun 19 '15 at 20:16
  • http://windows.microsoft.com/en-us/windows/turn-user-account-control-on-off#1TC=windows-7 – Jony Adamit Jun 19 '15 at 20:21
  • thanks for that... this solution did not work for me – otgw Jun 19 '15 at 20:30
  • You have to restart your computer. Also, did you try any of the other options I listed in my question? – Jony Adamit Jun 19 '15 at 20:31
  • My UAC was already on. I've checked regedit and even installed VSCommands.. my account isn't an admin account but the application always starts in admin mode – otgw Jun 19 '15 at 20:36
  • Make sure the shortcut and executables are not set to run elevated.. It must be one of these. I've scoured the net when I had this problem, the list here is quite exhaustive – Jony Adamit Jun 19 '15 at 20:41
0

You can try downloading VSCommands extension and using its Debug As Normal user feature.

user503386
  • 1,108
  • 8
  • 5
0

WINDOWS 11 update:

To open Visual Studio / Rider always in admin mode, follow these steps:

enter image description here

Alper Ebicoglu
  • 8,884
  • 1
  • 49
  • 55
  • sorry, but this has nothing to do with this question.. way to go for resurrecting a 10 years old post though! haha – Jony Adamit Jul 10 '23 at 08:40
  • When I searched for the same problem, I saw first this post, then I resolved my problem. Hence I'm sharing this post so that others who are also landing on this post can easily see it. What's your motivation that makes you think that a solution shouldn't be shared here @JonyAdamit ? – Alper Ebicoglu Jul 10 '23 at 11:56
  • Well, because the first thing StackOverflow is asking you to do, is to fully read the question, determine what is it asking for, and to make sure your answer provides that. A more appropriate way would be to write your own question and answer it, or find an existing question that matches your answer.. @alper-ebicoglu – Jony Adamit Jul 11 '23 at 12:15