Created
March 31, 2020 03:06
-
-
Save QuynhVir/30319418a706857c358b332a3235834d to your computer and use it in GitHub Desktop.
Clear Windows Event Logs via CMD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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