not so subtle...
The event logs can be cleared with the following utility commands:
Wevtutil cl system Wevtutil cl application Wevtutil cl security
$logs = Get-EventLog -List | ForEach-Object {$_.Log} $logs | ForEach-Object {Clear-EventLog -LogName $_ } Get-EventLog -list
Last updated 4 years ago
Was this helpful?