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?