This project has moved and is read-only. For the latest updates, please go here.

Creating new TaskEventLog yields no results.

Topics: Errors
Oct 2, 2013 at 5:25 PM
Hello, I have tried each overload of the TaskEventLog constructor, but each variation returns no results. I know this cannot be true as when I look at the event history in Task Scheduler, there are all kinds of rows there. I also tried using CorrelatedTaskEventLog, but when I tried enumerating the results from that, it timed out. Is this simply a permissions thing? I don't see why though as the user I'm logging in with has administrator rights. Thanks in advance for any assistance anyone can provide.
Oct 2, 2013 at 10:00 PM
Due to UAC, you may need to run your code as administrator in order to see the listing.