Logo




Subscribe:
RSS 2.0 | Atom 1.0
Categories:

Sign In


[Giagnocavo]Michael::Write()

 Monday, December 10, 2007
Access is denied when starting Windows Event Log on Vista

I ran into a strange problem today. The Windows Event Log service would not start, stating an error code 5 "Access is denied". This doesn't make any sense as running the services MSC requires elevated permissions and I'm an administrator. That error message alone didn't give me too much of a clue, especially because I don't know much about the event log service. Also, as the event log service was down, troubleshooting it required a bit more work than usual since I couldn't just turn to the event log.

Fortunately, Vista's ETW (Event Tracing for Windows) provided an easy solution. At a command prompt, I ran "logman query providers". This shows a list of all the installed tracing providers on the system. The interesting one in this case is "Microsoft-Windows-Eventlog". Using this information I could start a trace and generate a report. The report indicated that access was denied creating the System channel. It mentioned a path it was trying to use: %SystemRoot%\system32\winevt\logs\System.evtx

I checked the permissions and they looked ok (SYSTEM had full control). So I renamed the System log and gave permissions to everyone on the folder. Then I started the Event log service and it worked fine. It created a new System.evtx. When I checked the permissions I saw that Event log service runs as local system. Apparently that must be the security required. After resetting the permissions, everything seems to be working fine.

I'm posting this since when I searched for a solution, I found several people asking and no answers. This could be the solution for other people. I'd like to hear if anyone knows what might have caused this mess in the first place.

Misc. Technology
Monday, December 10, 2007 3:18:17 PM UTC  #    Comments [2]  |  Trackback

Friday, January 04, 2008 11:50:14 PM UTC
Thanks a lot! I finally solved my problem with Norton Ghost 12 with your help. After I altered some permissions in the windows map, Norten Ghost gave the error "cannot connect to the agent on computer ... ". After a lot of searching I found out that Norton Required the Event log service to work. I checked, and the service was down and I recieved the 'error code 5 "acces denied"' message... I guess the altering of the permissions deleted the 'local system' owner. But its working fine now.

Besides Norton Ghost, I never got a hint that the service (Event Log) wouldn't start. I'm glad Norton warned me, because otherwise I would have never found out and no logs would have been made at all from now on.
Rudolf
Thursday, July 03, 2008 1:12:04 AM UTC
This should be in the Microsoft Knowledge Base. It works great!! =)
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview