Tag Archives: Windows PowerShell

Clear All Windows 2008 R2 event logs!

If you want to clear the event logs in a Windows Server system, you can fire up Event Viewer, browse to the desired log and from the Actions menu select Clear Log….
But if you want to clear all the System and Application logs at once, you’d better use the ‘wevtutil’ command-line utility Microsoft offers. A Windows PowerShell command like this will do the job.

Run PowerShell as Administrator and enter the below cmd.

wevtutil el | foreach { wevtutil cl $_ }

Leave a comment

Posted by on November 30, 2013 in Windows


Tags: , , , , , , ,

%d bloggers like this: