Windows DatabaseebooksStatistical Information

LWE10068 : Howto create an eventlog entry in the windows eventlog with VBScript

Symptom:

You would like to automatically create eventlog entries

Cause:

none

Solution:

You can write a little vbs script with the following contents:

 

Dim oShell, sLogEntry

Set oShell = CreateObject("WScript.Shell")

sLogEntry = "Hello Lubby"
sLogEntry = sLogEntry & vbCrLf

oShell.LogEvent 4, sLogEntry

 

'The first parameter determines the type of entry.

'0 SUCCESS
'1 ERROR
'2 WARNING
'4 INFORMATION
'8 AUDIT_SUCCESS
'16 AUDIT_FAILURE


Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics