I'm having trouble reading the Applications and Services event logs in Vista and Windows 7
I referenced this thread:
and got nowhere too.
I found I can easily copy the event log then open and process the copied file, eg:
#Include <array.au3>
#Include <eventlog.au3>
$objEventLog = _EventLog__OpenBackup("", @ScriptDir & "\Microsoft-Windows-Dhcp-Client%4Admin.evtx")
$varEventsTotal = _EventLog__Count($objEventLog)
ConsoleWrite($varEventsTotal & @CRLF)
for $i = 0 to