Raj2796's Blog

October 10, 2012

Windows 2008 R2 64 clearing all event logs via powershell

Filed under: MS — raj2796 @ 11:34 am

Quick post – some of my virtual servers amassed massive event logs that were using up valuable space, a quick way to clear all event logs on the server from  powershell is to use the command:

wevtutil el | foreach { wevtutil cl $_ }

Advertisements

1 Comment »

  1. Simple but great combination of wevutil and powershell, thanks!
    Carlo

    Comment by Carlo — October 10, 2012 @ 11:50 am | Reply


RSS feed for comments on this post. TrackBack URI

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

Create a free website or blog at WordPress.com.

%d bloggers like this: