Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Clears the Windows Event Logs "Application" and "System".
- # Version: 1.0
- # Author: Deanoman
- # Reference: http://www.sevenforums.com/tutorials/320451-event-viewer-clear-all-events.html
- wevtutil cl Application
- wevtutil cl System
- Write-Host
- Write-Host "Application and System Event Logs have been cleared." -foregroundcolor "magenta"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement