Windows clear all events

Last updated:

WINDOWS
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }

references: