RSS

Clear All Windows 2008 R2 event logs!

30 Nov

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 $_ }

Advertisements
 
Leave a comment

Posted by on November 30, 2013 in Windows

 

Tags: , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: