Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run Visual Studio as an administrator by default?

I recently discovered that even while logged into my personal laptop as an administrator, Visual Studio does not run in administrator mode and you need to explicitly use Run As Administrator.

Is there a way to make it run as an administrator by default, other than creating a shortcut, etc.?

like image 444
Kumar Avatar asked Mar 11 '12 12:03

Kumar


People also ask

Can you force Visual Studio to always run as an administrator in Windows 10?

Open Visual Studio as Administratorfrom Properties window select Advanced… from Advanced Properties check on Run as Administrator option. select Ok in Advanced Properties window, Apply and then Ok on VS 2017 Properties.

Does Visual Studio need to run as administrator?

It is necessary to have local PC Administrator privileges to develop ArcGIS custom applications using Visual Studio 2005 on the Windows Vista operating system.


2 Answers

Try the following steps on Windows 10:

  • Search for Visual Studio on the Start window and select "Open file location":

    enter image description here

  • Select "Troubleshoot compatibility" :

    trouble shoot

  • Select "troubleshoot program":

    tobleshoot

    • Raise permissions:

    raise permissions

  • Select "Yes, save these settings for this program"

  • Select "Close"

Once that is done, Visual Studio should be running as administrator.

like image 37
Tshilidzi Mudau Avatar answered Oct 27 '22 00:10

Tshilidzi Mudau


Copied and pasted from here, the Using Advanced Properties section. This will allow you to always have the program run as an administrator when you open it.

Windows 7:

  1. Right click on the shortcut of the program, then click on Properties.
  2. Click on the Shortcut tab for a program shortcut, then click on the Advanced button.
  3. Check the 'Run as administrator' box, and click on OK.
  4. Click on OK.
  5. Open the program.
  6. If prompted by UAC, then click on Yes to apply permission to allow the program to run with full permission as an Administrator.

NOTE: If you are doing this is while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.

Update: (2015-07-05)

Windows 8, 8.1 and 10

In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility".

  1. Select "Troubleshoot program"

  2. Check "The program requires additional permissions" click "Next", click "Test the program..."

  3. Wait for the program to launch

  4. Click "Next"

  5. Select "Yes, save these settings for this program"

  6. Click "Close"

Update reference original Link

like image 122
hamid reza mansouri Avatar answered Oct 27 '22 00:10

hamid reza mansouri