user4826780
user4826780

Reputation:

How do I remove/stop Visual Studio 2013 from running as Administrator?

When I click on the Visual Studio 2013 icon, UAC asks me if I want to run it as Administrator and, when I click OK, it works. Now I need to restore the default behavior. How do I do it?

Upvotes: 4

Views: 7814

Answers (7)

See Sharper
See Sharper

Reputation: 51

What the last poster meant is that if you locate the AppCompatFlags\Layers key in the correct hive you can remove the key that is stored for the particular devenv.exe.

However, I just learned that it is not always saved in HKCU or HKLM I just found mine buried in the HKU for my domain user. Scan your whole registry for AppCompatFlags and keep looking in the Layers subkey, if you are diligent you will find the one key.

Upvotes: 0

binet
binet

Reputation: 1

delete reg valur of HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

devenv.exe like D:\program\programmation\vs2022\Common7\IDE\devenv.exe

Upvotes: 0

Soc
Soc

Reputation: 1

In my case, I accidentally enabled 'always run as administrator' after trying to attach a debugger to a process. As a result, the 'Advanced' properties of the shortcut/devenv.exe did not have the 'Run as Admin' box checked.

The solution was to go to Tools --> Options --> VSCommands 12 (click Open Configuration) --> IDE Enhancements --> General. There is a box "Always start Visual Studio with elevated permissions"; uncheck that to revert to the regular start-up without administrator rights.

Location of VSCommands in Options.

Location of elevated permissions checkbox.

Upvotes: 0

RossCoeH
RossCoeH

Reputation: 55

Visual Studio 2017 also still does this, but there real answer (for me) is in the post below - if User Access Control is disabled (never notify) then Visual studio always runs in administrator mode (even when run as administrator is unchecked in advanced properties of the shortcut) and therefore Visual Studio debug programs cannot access network files while running. Microsoft do not list this as a cause.

see

https://developercommunity.visualstudio.com/content/problem/55787/vs-2017-always-running-as-administrator.html

Upvotes: 0

Rose
Rose

Reputation: 513

I found that all of my large programs were running as administrator. To fix this, go to User Accounts in Control panel. Choose Change User Account Control settings. My settings were set to the lowest level; I changed to the second from top, Default-Notify me only when programs try to make changes to my computer. Press OK. Restart your computer, and the programs should no longer be opening as administrator.

Upvotes: 4

smr5
smr5

Reputation: 2793

Right click on Visual studio shortcut. You'll get this window: enter image description here

Click on Advanced button and uncheck the box 'Run as administrator'.

enter image description here

Upvotes: 1

Thomas Taylor
Thomas Taylor

Reputation: 555

You actually need to go into the Properties for the program. Under Advanced, there's a checkbox that says "run as administrator".

Upvotes: 1

Related Questions