{"id":9861,"date":"2006-08-01T13:26:00","date_gmt":"2006-08-01T13:26:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2006\/08\/01\/scriptcenter-eventlog-article\/"},"modified":"2019-02-18T13:21:27","modified_gmt":"2019-02-18T20:21:27","slug":"scriptcenter-eventlog-article","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/scriptcenter-eventlog-article\/","title":{"rendered":"ScriptCenter EventLog Article"},"content":{"rendered":"<p>ScriptCenter has a very good article exploring the use of Windows PowerShell to analyze your eventlogs.&nbsp; Check it out at:<\/p>\n<p><a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/topics\/msh\/cmdlets\/get-eventlog.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/topics\/msh\/cmdlets\/get-eventlog.mspx<\/a><\/p>\n<p>PSMDTAG:CMDLET: Get-EventLog<\/p>\n<p>PSMDTAG:FAQ: EventLog &#8211; How&nbsp;do I find out what event logs exist?&nbsp; ANSWER: Get-EventLog -list<\/p>\n<p>PSMDTAG:FAQ: EventLog &#8211; How can I get the most recent events?&nbsp; ANSWER: Get-EventLog System -Newest 100<\/p>\n<p>PSMDTAG:FAQ: EventLog &#8211; how do I find all event with a particular ID?&nbsp; ANSWER: Get-EventLog System |where {$_.EventID -eq&nbsp; 7036}<\/p>\n<p>PSMDTAG:FAQ: Eventlog &#8211; How can I find out which eventid has the most events?&nbsp; ANSWER: Get-EventLog System |group EventID |sort -desc count |select -first 10<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows PowerShell\/Aspen Architect<br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ScriptCenter has a very good article exploring the use of Windows PowerShell to analyze your eventlogs.&nbsp; Check it out at: http:\/\/www.microsoft.com\/technet\/scriptcenter\/topics\/msh\/cmdlets\/get-eventlog.mspx PSMDTAG:CMDLET: Get-EventLog PSMDTAG:FAQ: EventLog &#8211; How&nbsp;do I find out what event logs exist?&nbsp; ANSWER: Get-EventLog -list PSMDTAG:FAQ: EventLog &#8211; How can I get the most recent events?&nbsp; ANSWER: Get-EventLog System -Newest 100 PSMDTAG:FAQ: EventLog [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[10,47],"class_list":["post-9861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-faq","tag-get-eventlog"],"acf":[],"blog_post_summary":"<p>ScriptCenter has a very good article exploring the use of Windows PowerShell to analyze your eventlogs.&nbsp; Check it out at: http:\/\/www.microsoft.com\/technet\/scriptcenter\/topics\/msh\/cmdlets\/get-eventlog.mspx PSMDTAG:CMDLET: Get-EventLog PSMDTAG:FAQ: EventLog &#8211; How&nbsp;do I find out what event logs exist?&nbsp; ANSWER: Get-EventLog -list PSMDTAG:FAQ: EventLog &#8211; How can I get the most recent events?&nbsp; ANSWER: Get-EventLog System -Newest 100 PSMDTAG:FAQ: EventLog [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/9861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=9861"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/9861\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=9861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=9861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=9861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}