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