Can anyone explain to me why this command doesn’t work<\/p>\n
Advertisement
But running with an -instanceid 10016 does?<\/p>\n
Advertisement
Obviously records for both event id’s exist in event viewer<\/p>\n
For 6005 it says there are no matches.<\/p>\n
Sorry for the formatting. Phone won’t let me put text after the code block<\/p>\n
get-eventlog -logname system -Instanceid 6005\n<\/code><\/pre>","upvoteCount":2,"answerCount":5,"datePublished":"2021-03-29T14:37:57.000Z","author":{"@type":"Person","name":"bennett-lx","url":"https://community.spiceworks.com/u/bennett-lx"},"acceptedAnswer":{"@type":"Answer","text":"
Get-EventLog uses a Win32 API that is deprecated. The results may not be accurate missed or truncuated. Use the Get-WinEvent cmdlet instead.<\/p>\n
get-event log shows Systeml logs – shows events that are related to the system. Restart of system, restart of services, system files, stuff like that<\/p>\n