Saturday, July 31, 2004

TechNet Scripts: Add a Support URL to an Event Log Entry

TechNet Scripts: Add a Support URL to an Event Log Entry: "Add a Support URL to an Event Log Entry

Description
Writes an event to the Application event log that includes a support URL. Requires Windows XP or Windows Server 2003.
Script Code
Const EVENT_FAILED = 1
Set objShell = Wscript.CreateObject('Wscript.Shell')
objShell.LogEvent EVENT_FAILED, _
'Payroll application could not be installed.' _
& 'Additional information is available from http://www.fabrikam.com.'"

No comments: