Skip to content

Instantly share code, notes, and snippets.

@christian-korneck
Created May 9, 2026 16:25
Show Gist options
  • Select an option

  • Save christian-korneck/4021000047ffb56dac9955b1ad9fbe18 to your computer and use it in GitHub Desktop.

Select an option

Save christian-korneck/4021000047ffb56dac9955b1ad9fbe18 to your computer and use it in GitHub Desktop.
clean all windows event logs
get-winevent -ListLog * | ForEach-Object { wevtutil.exe clear-log "$($_.LogName)" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment