{
$txt = "hello from Event Log"
Write-EventLog -LogName Application -Source "Start-Process 3.5.exe" -EventID 5000 -EntryType Information -Message $txt -AsJob
$txt = "hello from Service1"
Write-EventLog -LogName Application -Source "Start-Service Service1" -EventID 5001 -EntryType Information -Message $txt -AsJob
$txt = "hello from Service2"
Write-EventLog -LogName Application -Source "Start-Service Service2" -EventID 5002 -EntryType Information -Message $txt -AsJob
"Completed"
}
"Scheduled"
}
Related links:
Comments