Back in old Windows 7 days when we wanted to make Visual Studio always launch as administrator we only had tick the checkbox “Always run as Administrator” on Compatibility tab of the devenv.exe file properties dialog.
Now this doesn’t work anymore in Windows 8!
First problem is the absence of the Compatibility tab. Second problem is that once you managed to make the tab re-appear using a registry hack it still doesn’t work quite well when you have Visual Studio 2012 installed along with Visual Studio 2010. There is also an extension called VSCommands which promises to make it work, but it did not in my case.
Here is a simple way to make Visual Studio always launch as Administrator in Windows 8:
- Go to HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
- Add a String Valueand set its name to “C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe”. Set its value to “RUNASADMIN”.
- Do the same again but use “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe” as the name.
- Done! Now every time you start Visual Studio it runs as Administrator!