{"id":1520,"date":"2018-07-06T09:13:36","date_gmt":"2018-07-06T09:13:36","guid":{"rendered":"http:\/\/www.fileinspect.com\/blog\/?p=1520"},"modified":"2018-08-22T09:03:25","modified_gmt":"2018-08-22T09:03:25","slug":"clear-event-log-on-windows","status":"publish","type":"post","link":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/","title":{"rendered":"How to easily clear the Event Log on Windows computers?"},"content":{"rendered":"<p>Your computer is a complex machine that simultaneously executes thousands of tasks a day, so it\u2019s not surprising that it sometimes runs into errors. To make sure that you are looking for a solution in the right place, you should know how you use the Windows event log feature. You can open it and check for errors, using that program.<\/p>\n<p>However, this log is often overflowing with tasks that have nothing to do with the errors you are searching for. So, to find out how to clear event log in Windows 10, you should read this guide.<\/p>\n<h2>The main events that are shown in the Windows Event Log are these:<\/h2>\n<ul>\n<li>errors<\/li>\n<li>warnings<\/li>\n<li>information from applications<\/li>\n<li>security-related events<\/li>\n<li>setup events<\/li>\n<li>system evens<\/li>\n<li>forwarded events from other Windows devices<\/li>\n<\/ul>\n<h3>You can use one of the following methods to clear event logs in Windows 10, 8, 7.<\/h3>\n<ul>\n<li>Use Command Prompt<\/li>\n<li>Use PowerShell<\/li>\n<li>use VBScript\/WMI<\/li>\n<\/ul>\n<p>This next part will show you how to clear all the event logs at once. You will need another method to clear a specific event log, so read on.<\/p>\n<h2>Method 1. Use Command Prompt to clear event logs.<\/h2>\n<p>Command Prompt is the easiest tool to use for solving system-related problems, and you can use it for your troubleshooting.<\/p>\n<ul>\n<li>Step 1. Open Notepad and copy the following text:<\/li>\n<\/ul>\n<p>@echo off<\/p>\n<p>FOR \/F \u201ctokens=1,2*\u201d %%V IN (\u2018bcdedit\u2019) DO SET adminTest=%%V<\/p>\n<p>IF (%adminTest%)==(Access) goto noAdmin<\/p>\n<p>for \/F \u201ctokens=*\u201d %%G in (\u2018wevtutil.exe el\u2019) DO (call :do_clear \u201c%%G\u201d)<\/p>\n<p>echo.<\/p>\n<p>echo Event Logs have been cleared!<\/p>\n<p>goto theEnd<\/p>\n<p>:do_clear<\/p>\n<p>echo clearing %1<\/p>\n<p>wevtutil.exe cl %1<\/p>\n<p>goto :eof<\/p>\n<p>:noAdmin<\/p>\n<p>echo You must run this script as an administrator!<\/p>\n<p>echo.<\/p>\n<p>:theEnd<\/p>\n<ul>\n<li>Step 2. Save this file as .bat or .cmd. You can name the file in quotes, and it will automatically be saved as a .cmd file.<\/li>\n<li>Step 3. Right-click the file and choose \u201cRun as administrator\u201d from the drop-down menu.<\/li>\n<li>Step 4. Wait for the command to finish.<\/li>\n<\/ul>\n<h2>Method 2. To use Windows PowerShell in order to clean the event logs, you need to take the following steps:<\/h2>\n<ul>\n<li>Step 1. Go to Search, then type PowerShell into the search bar.<\/li>\n<li>Step 2. Right-click the program and select to run as an administrator.<\/li>\n<li>Step 3. Copy this line into PowerShell and hit Enter: wevtutil el | Foreach-Object {wevtutil cl \u201c$_\u201d}\u00a0<img class=\"aligncenter wp-image-1888 size-full\" src=\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/043.jpg\" alt=\"Type wevtutil el | Foreach-Object {wevtutil cl \u201c$_\u201d}\u00a0 and press Enter.\" width=\"857\" height=\"672\" srcset=\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/043.jpg 857w, https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/043-300x235.jpg 300w, https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/043-768x602.jpg 768w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/li>\n<li>Step 4. Next, type Exit and close PowerShell<\/li>\n<\/ul>\n<h2>Method 3. Use VBScript?WMI to clear event logs.<\/h2>\n<p>You should be aware that this method is applicable only to clear classic event Logs.<\/p>\n<ul>\n<li>Step 1. Copy this text into Notepad:<\/li>\n<\/ul>\n<p>strComputer\u2002=\u2002\u201d.\u201d<\/p>\n<p>Set\u2002objWMIService\u2002=\u2002GetObject(\u201cwinmgmts:\u201d\u2002_<\/p>\n<p>&amp;\u2002\u201d{impersonationLevel=impersonate,\u2002(Backup,\u2002Security)}!\\\u201d\u2002_<\/p>\n<p>&amp;\u2002strComputer\u2002&amp;\u2002\u201drootcimv2\u201d)<\/p>\n<p>Set colLogFiles =\u2002objWMIService.ExecQuery\u2002_<\/p>\n<p>(\u201cSelect\u2002*\u2002from\u2002Win32_NTEventLogFile\u201d)<\/p>\n<p>For each objLogfile in colLogFiles<\/p>\n<p>objLogFile.ClearEventLog()<\/p>\n<p>Next<\/p>\n<ul>\n<li>Step 2. Save the file as .VBS<\/li>\n<li>Step 3. Move the file that you just created to this folder: C:\/Windows\/System32<\/li>\n<li>Step 4. Next, open Command Prompt as an administrator (right-click the icon).<\/li>\n<li>Step 5. Run this command: CScript ClearEvent.vbs<\/li>\n<li>Step 6. Wait until the command is completed. You have cleared your even log in Windows 10 completely.<\/li>\n<\/ul>\n<h2>If you need to clear one item from the Windows Event log, use these methods:<\/h2>\n<h3>Method 1. Manually clearing items from Windows Event Log<\/h3>\n<ol>\n<li>Left-click the Start button.<\/li>\n<li>Open the Control Panel.<\/li>\n<li>Select System and Security.<\/li>\n<li>Then use the Administrative Tools.<\/li>\n<li>Sign in as an administrator and double-click \u201cevent viewer\u201d.<\/li>\n<li>In the list of events, you can right-click the event you want to clear.\u00a0<img class=\"aligncenter wp-image-1885 size-full\" src=\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/041-1.jpg\" alt=\"Browse Event Viewer to see what logs you can edit.\" width=\"955\" height=\"592\" srcset=\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/041-1.jpg 955w, https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/041-1-300x186.jpg 300w, https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/041-1-768x476.jpg 768w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/li>\n<li>Left-click to \u201cClear log\u201d to delete the event from the log.<\/li>\n<\/ol>\n<h3>Method 2. You can also use Command Prompt to clear one specific event from the log, here is how:<\/h3>\n<ul>\n<li>Step 1. Run Command Prompt as an administrator.<\/li>\n<li>Step 2. Type \u2018wevtutil el\u2019 into the cmd window that opened up.<\/li>\n<li>Step 3. Find the event you want to clear out in the list that opened up.<\/li>\n<li>Step 4. Next, to the name of the program in the log, you should write down the following command: wevtutil cl Example &#8211; where Example stands for the name of the program that you want to clear out.<\/li>\n<li>Step 5. This will help you eliminate the event from the event log manually using Command Prompt.<\/li>\n<\/ul>\n<p>Of course, the manual clearing out of the logs is time-consuming, and if you don\u2019t have technical background, that can be overwhelming even without guides. However, there is a solution: you can use a tool like\u00a0<a href=\"https:\/\/www.auslogics.com\/en\/software\/anti-malware\/\">Auslogics Anti-Malware<\/a> to make sure that your computer was not infected by any malicious software that led to errors that you are trying to get rid of.<\/p>\n<p><img class=\"aligncenter wp-image-1887 size-full\" src=\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/042.jpg\" alt=\"Auslogics Anti-Malware will check if malware has penetrated your system.\" width=\"835\" height=\"627\" srcset=\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/042.jpg 835w, https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/042-300x225.jpg 300w, https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2018\/07\/042-768x577.jpg 768w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your computer is a complex machine that simultaneously executes thousands of tasks a day, so it\u2019s not surprising that it sometimes runs into errors. To make sure that you are looking for a solution in the right place, you should know how you use the Windows event log feature. You can open it and check [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":1521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[34,61,43,56],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to easily clear the Event Log on Windows computers? - The Official FileInspect Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ivan.diskin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#organization\",\"name\":\"Outbyte Computing Pty Ltd\",\"url\":\"https:\/\/www.fileinspect.com\/blog\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/channel\/UCI6brHKmaiiUCcseAlcV3tQ\",\"https:\/\/www.facebook.com\/outbyte\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2021\/05\/1200x630-3.jpg\",\"contentUrl\":\"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2021\/05\/1200x630-3.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Outbyte Computing Pty Ltd\"},\"image\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#website\",\"url\":\"https:\/\/www.fileinspect.com\/blog\/\",\"name\":\"The Official FileInspect Blog\",\"description\":\"News and Perspectives from IT Experts\",\"publisher\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fileinspect.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/\",\"url\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/\",\"name\":\"How to easily clear the Event Log on Windows computers? - The Official FileInspect Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#website\"},\"datePublished\":\"2018-07-06T09:13:36+00:00\",\"dateModified\":\"2018-08-22T09:03:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fileinspect.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows tools\",\"item\":\"https:\/\/www.fileinspect.com\/blog\/windows-tools\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to easily clear the Event Log on Windows computers?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/\"},\"author\":{\"name\":\"ivan.diskin\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#\/schema\/person\/adc3a27e72a3c0dc7f88886068ae7a1e\"},\"headline\":\"How to easily clear the Event Log on Windows computers?\",\"datePublished\":\"2018-07-06T09:13:36+00:00\",\"dateModified\":\"2018-08-22T09:03:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/\"},\"wordCount\":746,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#organization\"},\"keywords\":[\"system tools\",\"Windows 10\",\"Windows 8\",\"windows tips\"],\"articleSection\":[\"Windows tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#\/schema\/person\/adc3a27e72a3c0dc7f88886068ae7a1e\",\"name\":\"ivan.diskin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fileinspect.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/54b9e8452b4d854a9ae7270f2a131047?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/54b9e8452b4d854a9ae7270f2a131047?s=96&r=g\",\"caption\":\"ivan.diskin\"},\"sameAs\":[\"https:\/\/www.fileinspect.com\/blog\/author\/ivan.diskin\/\"],\"url\":\"https:\/\/www.fileinspect.com\/blog\/author\/ivan-diskin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to easily clear the Event Log on Windows computers? - The Official FileInspect Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/","twitter_misc":{"Written by":"ivan.diskin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.fileinspect.com\/blog\/#organization","name":"Outbyte Computing Pty Ltd","url":"https:\/\/www.fileinspect.com\/blog\/","sameAs":["https:\/\/www.youtube.com\/channel\/UCI6brHKmaiiUCcseAlcV3tQ","https:\/\/www.facebook.com\/outbyte"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fileinspect.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2021\/05\/1200x630-3.jpg","contentUrl":"https:\/\/www.fileinspect.com\/blog\/wp-content\/uploads\/2021\/05\/1200x630-3.jpg","width":1200,"height":630,"caption":"Outbyte Computing Pty Ltd"},"image":{"@id":"https:\/\/www.fileinspect.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.fileinspect.com\/blog\/#website","url":"https:\/\/www.fileinspect.com\/blog\/","name":"The Official FileInspect Blog","description":"News and Perspectives from IT Experts","publisher":{"@id":"https:\/\/www.fileinspect.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fileinspect.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/","url":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/","name":"How to easily clear the Event Log on Windows computers? - The Official FileInspect Blog","isPartOf":{"@id":"https:\/\/www.fileinspect.com\/blog\/#website"},"datePublished":"2018-07-06T09:13:36+00:00","dateModified":"2018-08-22T09:03:25+00:00","breadcrumb":{"@id":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fileinspect.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Windows tools","item":"https:\/\/www.fileinspect.com\/blog\/windows-tools\/"},{"@type":"ListItem","position":3,"name":"How to easily clear the Event Log on Windows computers?"}]},{"@type":"Article","@id":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#article","isPartOf":{"@id":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/"},"author":{"name":"ivan.diskin","@id":"https:\/\/www.fileinspect.com\/blog\/#\/schema\/person\/adc3a27e72a3c0dc7f88886068ae7a1e"},"headline":"How to easily clear the Event Log on Windows computers?","datePublished":"2018-07-06T09:13:36+00:00","dateModified":"2018-08-22T09:03:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/"},"wordCount":746,"commentCount":0,"publisher":{"@id":"https:\/\/www.fileinspect.com\/blog\/#organization"},"keywords":["system tools","Windows 10","Windows 8","windows tips"],"articleSection":["Windows tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.fileinspect.com\/blog\/clear-event-log-on-windows\/#respond"]}]},{"@type":"Person","@id":"https:\/\/www.fileinspect.com\/blog\/#\/schema\/person\/adc3a27e72a3c0dc7f88886068ae7a1e","name":"ivan.diskin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fileinspect.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/54b9e8452b4d854a9ae7270f2a131047?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/54b9e8452b4d854a9ae7270f2a131047?s=96&r=g","caption":"ivan.diskin"},"sameAs":["https:\/\/www.fileinspect.com\/blog\/author\/ivan.diskin\/"],"url":"https:\/\/www.fileinspect.com\/blog\/author\/ivan-diskin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/posts\/1520"}],"collection":[{"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/comments?post=1520"}],"version-history":[{"count":4,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/posts\/1520\/revisions"}],"predecessor-version":[{"id":1889,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/posts\/1520\/revisions\/1889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/media\/1521"}],"wp:attachment":[{"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/media?parent=1520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/categories?post=1520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fileinspect.com\/blog\/wp-json\/wp\/v2\/tags?post=1520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}