Running a section of code with admin privileges
From: JCreasy (JCreasy_at_discussions.microsoft.com)
Date: 06/29/05
- Previous message: Rob R. Ainscough: "Re: ADO.NET security in Windows App?"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Running a section of code with admin privileges"
- Reply: Dominick Baier [DevelopMentor]: "Re: Running a section of code with admin privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 28 Jun 2005 18:18:02 -0700
This is rather similar to a post before titled "custom event log". What I
want to do is use EventLog.CreateEventSource() in a remote application that
will not be running admin privileges. I was hoping to find a way to
temporarily allow admin privileges just to do the log event and then resume
normal privileges.
So far I have not been very succesful in finding a way to do this and it
might be that it's just impossible for security reasons. If it is possible
however, I would greatly appreciate any information on how to do this.
- Previous message: Rob R. Ainscough: "Re: ADO.NET security in Windows App?"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Running a section of code with admin privileges"
- Reply: Dominick Baier [DevelopMentor]: "Re: Running a section of code with admin privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|