====== Clear All Windows Event Logs ====== :!: Run commands in elevated PowerShell. ===== 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 }