Visual Studio - Always Run as Administrator

By elevating permissions for Visual Studio, you can perform all tasks related to features such as building and debugging applications, which 'might not' work correctly under standard user permissions. To elevate permissions, go to the Start Menu and right click Visual Studio > click 'Run as Administrator'. However if you are the only user on the machine and frequently need to do this, it could be annoying, plus there are chances you could forget running VS with elevated permissions.

Here's how to always run Visual Studio as Administrator in Windows Vista/ Windows 7.

Go to Start > All Programs > Expand Visual Studio folder > Right click Visual Studio.exe > Properties

image

Click on the Compatibility tab and in the Priviledge Level section, check the box ‘Run this program as an administrator’

image

Click ‘Apply’ to accept the changes and you are done!



Will you give this article a +1 ? Thanks in advance


About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal

4 comments:

theslice said...

Perhaps it would be prudent to have mentioned the pros and cons of doing such a thing. In general, running as a low-privilege account is a GOOD thing but there are some points as to when running VS as an admin is necessary (i.e. attaching the debugger to another process like w3wp.exe). IMHO, there's no real good reason to run as Administrator ALL the time.

Suprotim Agarwal said...

theslice: Thanks for the feedback. Point accepted and added to the post.

ASP.NET Solution said...

Here is a link that provides a good explanation of make the visual studio always run as administrator.

http://www.a2zmenu.com/Miscellaneous/Visual-Studio-Always-Run-As-Administrator.aspx

Rony said...

Hi! you can also use runasspc:
http://runakay.blogspot.com/2011/03/running-applications-as-administrator.html