Running Visual Studio with elevated permissions

07 juli 2014 om 00:00 by Ruud van Falier - Post a comment

This is just a quick heads up on how to always run Visual Studio with elevated permissions (i.e. run as administrator).
I use this because I like to attach to the IIS process when debugging and also because my build scripts usually execute tasks that require elevated permissions.

Here is an image that shows how to configure Visual Studio (or any other program) to achieve this:

  1. Find devenv.exe in your explorer.
  2. Right-click and choose "Troubleshoot compatibility"
  3. Choose "Troubleshoot program"
  4. Select "This program requires additional permissions"
  5. You will now be asked to test the program before you're able to close the dialog.

Visual Studio will now always be launched with elevated permissions.