Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
# Create Event Log object
|
||||
$EventLog=new-object System.Diagnostics.EventLog("Application")
|
||||
#Declare Event Source; must be 'registered' with Windows
|
||||
$EventLog.Source="Application" # It is possible to register a new source (see Note2)
|
||||
# Setup the Event Types; you don't have to use them all, but I'm including all the possibilities for reference
|
||||
$infoEvent=[System.Diagnostics.EventLogEntryType]::Information
|
||||
$errorEvent=[System.Diagnostics.EventLogEntryType]::Error
|
||||
$warningEvent=[System.Diagnostics.EventLogEntryType]::Warning
|
||||
$successAuditEvent=[System.Diagnostics.EventLogEntryType]::SuccessAudit
|
||||
$failureAuditEvent=[System.Diagnostics.EventLogEntryType]::FailureAudit
|
||||
|
||||
# Write the event in the format "Event test",EventType,EventID
|
||||
$EventLog.WriteEntry("My Test Event",$infoevent,70)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
$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.'
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
$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.'
|
||||
New-EventLog -LogName 'Free Lula!' -Source '#FreeLula'
|
||||
Limit-EventLog -OverflowAction 'OverWriteAsNeeded' -MaximumSize (64KB*13) -LogName 'Free Lula!'
|
||||
Write-EventLog -LogName 'Free Lula!' -Source '#FreeLula' -Message $MessageFreeLula -EventId 13 -EntryType 'Information'
|
||||
'SUCCESS: The Lula Livre message (#FreeLula) has been recorded in the "Free Lula!" log event.'
|
||||
Loading…
Add table
Add a link
Reference in a new issue