Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Visual Studio not to give UAC prompt on each run?

I have switched to Vista recently and I wanted to keep UAC turned on, as I agree it increases computer security a lot. Some developer tools I use regularly require running elevated:

  • PIX for Windows
  • Visual Studio 2005 (elevated privileges seem to be needed for debugging and for IncrediBuild to work)
  • mapped and substed drives: The elevated process does not seem to see the drives I have mapped in my user account. This article describes the problem, but I am not sure how could I implement its final suggestion to "map these drives in the context of the elevated login".

I have experimented with many suggestions I have found, Compatibility Administrator seemed quite promising, but the result was still not what I wanted. When I used RunAsInvoker, there was no UAC prompt, but the Visual Studio did not work. When I used RunAsAdmin or RunAsHighest, it worked, but there was the prompt.

Is there any way how to teach UAC to remember some particular application should always run elevated and never prompt me about this, or some other way how to allow me launching VS elevated without the prompt? If there is no way to do it, does there exist some security reason why it cannot be done?

like image 955
Suma Avatar asked Jan 16 '09 20:01

Suma


People also ask

How do I stop UAC popup for one program?

On your desktop, right click and select New > Shortcut. Paste 'C:\Windows\System32\schtasks.exe /RUN /TN "Name of folder\Name of task" into the text box. This will create a link to your program that will automatically skip the prompt asking for permission to make changes to your computer.

How do I make Visual Studio 2022 always run as administrator?

On the Windows desktop, right-click the Visual Studio shortcut, and then select Properties. Select the Advanced button, and then select the Run as administrator check box. Select OK, and then select OK again.

How do I stop Visual Studio code from running as administrator?

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.

Can you run Visual Studio without admin rights?

For reasons of security, the administrator permissions are required when installing Visual Studio.


1 Answers

Try:

Administrative Tools -> Local Security Policy -> Local Policies -> Security Options -> User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode = Elevate without prompting.

like image 146
Joshua Drake Avatar answered Oct 18 '22 09:10

Joshua Drake