Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,13 +0,0 @@
|
|||
# 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)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
$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.'
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
$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.'
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
Sub write_event(event_type,msg)
|
||||
Set objShell = CreateObject("WScript.Shell")
|
||||
Select Case event_type
|
||||
Case "SUCCESS"
|
||||
n = 0
|
||||
Case "ERROR"
|
||||
n = 1
|
||||
Case "WARNING"
|
||||
n = 2
|
||||
Case "INFORMATION"
|
||||
n = 4
|
||||
Case "AUDIT_SUCCESS"
|
||||
n = 8
|
||||
Case "AUDIT_FAILURE"
|
||||
n = 16
|
||||
End Select
|
||||
objShell.LogEvent n, msg
|
||||
Set objShell = Nothing
|
||||
End Sub
|
||||
|
||||
Call write_event("INFORMATION","This is a test information.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue