Launch application with admin rights

GillouX

New member
Joined
Jan 31, 2008
Messages
2
Programming Experience
1-3
Hello

I need to delete some registry keys and I need to make this from a winform application (which actually makes sg else also) that some users will use

the problem is that they don't have the rights on the computer to make anything about the registry.

do you have a kind of solution for that ? launch the application with admin rights (not so good) or just give special rigths during for the delete of the regiser keys ?

Thx in advance

GillouX
 
you can use the existing windows feature "run as" to elevate the rights for the application to carry out the task or grant the user the appropriate rights. doing it this way will not require any modification to the existing application.

if you still want to do all this within the app, user impersonation is the way to go.
 
Back
Top