Microsoft Developer Network > Forums Home > Windows Diagnostics Forums > Windows Events > Reading Entries from EventLog in vista
Ask a questionAsk a question
 

AnswerReading Entries from EventLog in vista

  • Thursday, July 02, 2009 2:24 PMCheryl Joseph Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    I want to be able to read the entries in one of the entries in the Microsoft-Windows-GroupPolicy/Operational under Applications and Services log in C#. When I use

    System.Diagnostics.EventLog.Exists("Microsoft-Windows-GroupPolicy/Operational"), to see if the log event exists, it returns false. I've found that to be true for all logs that are nested in sub folders. Is there another way to do this?

    Thanks in advance,
    Cheryl

    • Moved byJon LangdonMSFTTuesday, July 28, 2009 3:56 AM (From:Building Development and Diagnostic Tools for .Net)
    •  

Answers

All Replies