Running Visual Studio with Windows 8.1 in Administrator Mode

Photograph of engineers tools

When running Visual Studio in Windows 7 (and 8), I always do a couple of things:

  1. Turn User Account Control (UAC) off – on Windows 7 this defaults Visual Studio (and other programs) to run in Administrator mode.
  2. Switch off real time scanning on Microsoft Security Essentials (I don’t run email on the same PC), because I don’t want an anti virus slowing things down by virus checking data that will never have a virus in it.

Anyway, the subject of this article has come around because I’ve only just started using Windows 8.1. I tried to create a virtual directory in IIS via Visual Studio’s project web tab, and it said I didn’t have permission. WTF?

The reason why turns out to be that you have to set additional permissions on your executables that you really want to be in administrator mode. Steps:

Find devenv.exe for each of your Visual Studio installs

I have 2012 and 2013 on a 64 bit machine, so these are in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe and C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe)

Right click devenv.exe and choose Troubleshoot Compatibility

The following page appears:

Program Compatibility Troubleshooter 1
Program Compatibility Troubleshooter 1
Click Troubleshoot program and click next

The following page appears:

Program Compatibility Troubleshooter 2
Program Compatibility Troubleshooter 2
Tick “The program requires additional permissions” and click Next

The following page appears:

Program Compatibility Troubleshooter 3
Program Compatibility Troubleshooter 3
Click “Test the Program” before clicking Next

It won’t let you click next unless you click test the program first.

After that its save the settings and close.

You have to repeat this for each executable you would like to run in administrator mode. Lets hope they improve matters in Windows 10. Given the number of developers in the world, they should have a big button you can press when you are installing windows with the label “I’M A DEVELOPER, I’M NOT STUPID” so it can automatically set all this stuff up for you, although I’m not holding my breath…

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *