How elevate and get admin rights on-demand in a .NET application?

Posted by sashaeve on Stack Overflow See other posts from Stack Overflow or by sashaeve
Published on 2010-05-06T10:56:22Z Indexed on 2010/05/06 11:08 UTC
Read the original article Hit count: 270

Filed under:
|
|
|

I have an .NET application which is run with default rights as the current user, then at some point I need to perform an action which requires admin rights.

How can I get admin rights on-demand in a .NET application?

Requiring that the application is run with admin rights from the beginning is not appropriate as it may be that such action may not be called.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about admin-rights