COM+ application should run under - just choose an account with the appropriate
> ok, so I'll take the event logging code out of the main program and
> package it into a COM+ component. Run the main under my user
> privileges and have it call the COM+ component.
>
> I'm still not sure how to have the COM+ component run with admin
> privileges when only the user is logged on. This is a cleaner
> approach, but I still have the problem of having code run with admin
> privileges when only the user is logged in.
>
> "Dominick Baier [DevelopMentor]" wrote:
>
>> Hello JCreasy,
>>
>> i would factor out that privileged code out of your main process.
>> Package that priv code in a NT Service or a COM+ component. Then let
>> this code run with admin privs and call into it from your least
>> privileged demon.
>>
>> Thats IMO the cleanest approach.
>>
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>>
http://www.leastprivilege.com >>> 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.
>>>