Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

We have an application, which create windows event log and writes errors in it.
On client machine which has OS as XP, application gives message that user don’t have rights to write to log.
How to give this access to user to write event log without giving them admin rights?

Thanks,
Nagendra.
Posted

Whether the OS xp is updated with Service Pack 3 or not ? Check that one.
 
Share this answer
 
Comments
nagendrathecoder 15-Mar-11 5:37am    
Thanks, i'll check about SP3 and will let you know. :)
Dalek Dave 15-Mar-11 5:54am    
Good Advice
[no name] 15-Mar-11 5:56am    
Thanks Dalek.
Instead of writing to to a system log, have the application write to its own log in the appropriate application data folder. At that point, you don't have to artificially elevate the user's privileges.
 
Share this answer
 
Comments
Dalek Dave 15-Mar-11 5:54am    
Good Call, and Sage Advice!
Sergey Alexandrovich Kryukov 15-Mar-11 15:10pm    
This is very practical advice, my 5. Still, System log has its value, can save in more difficult situations.
--SA
#realJSOP 15-Mar-11 17:36pm    
But you can't write to it without admin rights. Not real useful at that point.
Sergey Alexandrovich Kryukov 15-Mar-11 17:56pm    
Sure, you're right. I already appreciated your advice. I refer the value of event log not at this point but in general. Also, the problem of elevation of privileges remains anyway, because event log in not the only place. I would try to avoid it by all means, but... It is a special issue with Windows Service, there was couple of Question posted here...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900