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