Categories

CTP3 – Remove-EventLog

Remove-EventLog is a new cmdlet in CTP3.  It brings the following parameters:

ComputerName
LogName
Source
Verbose
Debug
ErrorAction
WarningAction
ErrorVariable
WarningVariable
OutVariable
OutBuffer
WhatIf
Confirm

The Source is how applications write to the event log – it is possible to just remove one or more sources rather than the whole event log.

To remove an event log

Remove-EventLog -LogName test23

Assuming you have the correct privileges the removal happens.  This is one cmdlet where I would very strongly recommend using the –whatif and –confirm parameters

 

Technorati Tags: ,,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>