Skip to content
October 21, 2013 / pauldundon

Running Visual Studio with Admin Privileges in Windows 8

The problem: You have Visual Studio solutions which you want to run with admin privileges, and want to launch them by double-clicking on the solution file in Explorer.

Possible approaches: It is possible to run Visual Studio with admin privileges from the Start screen, but the solution file then has to be opened from within Visual Studio. It is also possible to disable UAC so that VS will run with admin privileges if you are logged in under an admin account, but this disables Metro apps.

Solution: Back up your registry, and then find the key

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\

Under this key, add a string value

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe

Set the data for this to RUNASADMIN

This value relates to Visual Studio 2012. For VS 2010, substitute 10.0 for 11.0; for VS 2013, substitute 12.0 for 11.0.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: