
Sometimes they need to quit based on a condition that has been or has not been met.Īnd every batch file needs to quit, and will do so, when it reaches the last line of code.
VoltCraft Energy Logger 3500 ConfigurationĮven our favorite batch files will, at some time, need to quit. Click, or right-click any of the categories and click on Clear Log. Logged categories include Applications, Security, Setup, System, and Forwarded Events. We mention how to open Event Viewer because you can manually clear logs one at a time. You can open Event Viewer by pressing the Windows Key + S, type in, and click on Event Viewer. PowerShell - Get-EventLog -LogName * | ForEach Open the Command Prompt or PowerShell as administrator.Ĭommand Prompt - for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1" The entire process should only take a minute, and the windows will close when completed.ģ: Clear All Event Logs in PowerShell or Command Prompt
Download Clear All Event Logs in Event Viewer in Windows from MajorGeeks, right-click and Run as administrator. The easiest and fastest way is to use a batch file. TIP: Hard to fix Windows Problems? Repair/Restore Missing Windows OS Files Damaged by Malware with a few clicks