Advertisement
hl2guide

Windows Event Log Clearer - PowerShell

Dec 18th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Clears the Windows Event Logs "Application" and "System".
  2. # Version: 1.0
  3. # Author: Deanoman
  4.  
  5. # Reference: http://www.sevenforums.com/tutorials/320451-event-viewer-clear-all-events.html
  6. wevtutil cl Application
  7. wevtutil cl System
  8.  
  9. Write-Host
  10. Write-Host "Application and System Event Logs have been cleared." -foregroundcolor "magenta"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement