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.