Skip to content

Instantly share code, notes, and snippets.

@by-nari
Created March 31, 2020 03:06
Show Gist options
  • Save by-nari/30319418a706857c358b332a3235834d to your computer and use it in GitHub Desktop.
Save by-nari/30319418a706857c358b332a3235834d to your computer and use it in GitHub Desktop.
Clear Windows Event Logs via CMD
powershell.exe -Command "Get-WinEvent -ListLog * -Force | % { Wevtutil.exe cl $_.LogName }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment