User Tools

Site Tools


computing:windows:clear_event_logs

This is an old revision of the document!


Clear All Windows Event Logs

PowerShell 1.0

wevtutil el | Foreach-Object {Write-Host "Clearing $_"; wevtutil cl "$_"}

PowerShell

:!: Ignore the error clearing the Debug logs.

Get-WinEvent -ListLog * -Force | % { Wevtutil.exe cl $_.logname }
computing/windows/clear_event_logs.1402638268.txt.gz · Last modified: 2014/06/12 23:44 by gcooper