New-EventLog -LogName Application -Source "CUSTOM EVENTS" Write-EventLog -LogName Application -Source "CUSTOM EVENTS" -EntryType Information –EventID 1 –Message "This is a test" Get-EventLog system -after (get-date).AddDays(-15) | where {$_.InstanceId -eq 7001}