Write an event in the local event log VBScript

On December 26, 2008, in Programming, by Mike Hudson

Use this simple VBScript to write an event in the local event log.

1
2
3
4
5
6
7
8
' Write Events to the Local Event Log
 
Const EVENT_SUCCESS = 0
 
Set objShell = Wscript.CreateObject("Wscript.Shell")
 
objShell.LogEvent EVENT_SUCCESS, _
"Payroll application successfully installed."
Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!