escribirEventopoersonlalizado.ps1 277 B

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