Wednesday, August 01, 2007

Deleting an eventlog

On my old XP PC I had a couple of extra eventlogs like MonadLog (yes, it is that old) I wanted to get rid of.

It is very easy from PowerShell -

PS> [System.Diagnostics.EventLog]::Delete("MonadLog")

A warning: You can also delete logs like System (this was tested on XP). After two reboots, the log works again - but naturally it was flushed.

No comments: