RosettaCodeData/Task/Write-to-Windows-event-log/PowerShell/write-to-windows-event-log-2.ps1
2026-04-30 12:34:36 -04:00

5 lines
508 B
PowerShell

$MessageFreeLula = 'Global unions and union leaders from more than 50 countries came together ' +
'in Geneva today to stand in solidarity with former Brazilian President Lula, calling for ' +
'his immediate release from jail and that he be allowed to run in the upcoming elections.'
Write-EventLog -LogName 'System' -Source 'Eventlog' -Message $MessageFreeLula -EventId 13 -EntryType 'Information'
'SUCCESS: The Lula Livre message (#FreeLula) has been recorded in the system log event.'