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!






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

3 comments:

Anonymous 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.

Rony said...

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