Belangrijke mededeling over deze pagina:

Deze pagina is niet beschikbaar in het Nederlands en daarom wordt de Engelse versie van het artikel getoond. Dit komt vooral voor bij technische artikelen.

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.

1 Reactie

  • Door Kam Figy op 7/7/2014 om 4:00 PM

    I used to do it this way, but having that setting on prevents you from being able to double click a file associated with Visual Studio and have it open (the non-admin file open request is not allowed to be passed to the elevated process, I assume). It says 'file not found'.

    However, you can pin it to your taskbar and shift-ctrl-click it to launch a new elevated process (this works with anything pinned or in the start menu/start screen). This also works to launch multiple visual studios at once.

Plaats een reactie