Skip to content

Instantly share code, notes, and snippets.

@nijave
Created July 19, 2021 14:39
Show Gist options
  • Save nijave/6dcbf1e6746247a0a22de1bef1a9cc45 to your computer and use it in GitHub Desktop.
Save nijave/6dcbf1e6746247a0a22de1bef1a9cc45 to your computer and use it in GitHub Desktop.
List/remove Windows Event Logs
# List
Get-WmiObject win32_nteventlogfile
Remove-EventLog -LogName "Some Log Name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment