Delete old entries of the event-log with PowerShell?
I'd like to delete old entries of the event-log (where old means "older that X days") using PowerShell. I found the Clear-EventLog cmdlet but that Deletes all entries from specified event logs on the local or remote computers. I have found a lot of scripts that use this cmdlet to delete ALL entries - but is there a way to select only some [old] entries of the event-log and delete only those?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.