Clear all events manually

Many times after changing a setting to fix something in Server 2012r2, I like to have a clean slate on reboot to better see what has and hasn’t been fixed. I found the following command that when executed from a Command Prompt launched with Run as administrator does just that:

for /F “tokens=*” %1 in (‘wevtutil.exe el’) DO wevtutil.exe cl “%1”

This entry was posted in Windows Server 2012r2. Bookmark the permalink.