Developing software in a non-privileged environment


You (i.e. your login account) don’t have to be a member of local Administrators group to do your daily tasks on your computer, including developing software. It might take a while to get used to it, but with time it will be as normal as using the seat belt in your car. The benefit is not only in ensuring a more secure environment, but also the software you produce is more likely to be available for use in a non-privileged environment. The software should not require elevated privileges unless it really needs them. Here are some resources about developing software as a non-admin: Developing Software in Visual Studio .NET with Non-Administrative Privileges and How to develop code as a non-admin.

Comments (4)

  1. Well said. I have been doing this for awhile, and it is worth the trouble (initially) to get into the habit.

  2. Neilthespod says:

    This does not work if you want to debug code running under another user account (such as IIS hosted .Net code or services etc) you can’t attach because there is some event that cant be accessed via non-admin code.

    For reasons why see http://www.codeproject.com/macro/clrdebugenable.asp?target=non%2Dadmin