.NET - lower privileges of the application

I would like to know how to programmatically lower my application rights. So, let's say someone with administrator privileges runs my program, I would like my program to still run in a normal user environment or with less privileges that I do not need. Also, could you explain what is limited in the lower trust environment?

Edit:. Curtisk suggested permview.exe to view permissions for applications that lead me in the right direction to the new permcalc.exe tool - http://msdn.microsoft.com/en-us/library/ms165077(VS.80).aspx . Thanks again.

+4
source share
1 answer

The RequestMinimum flag may be close to what you need, although it is based on the / PermissionSet zone, in more detail in the related MSDN How-to.

The idea is that it will launch the application with the least set of privileges to work, regardless of who calls it ...

Follow the question in the comments below: view the permission viewer

+2
source

All Articles