Skip to content

Instantly share code, notes, and snippets.

@QuynhVir
Created March 31, 2020 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuynhVir/30319418a706857c358b332a3235834d to your computer and use it in GitHub Desktop.
Save QuynhVir/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