cmd
for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
powershell
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
control
eventvwr.msc
cmd
for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
powershell
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
control
eventvwr.msc