LOGNTEVENT        Write a message to the NT application event log

Top  Previous  Next

Syntax:

LOGNTEVENT

[ message ] [ options ]

Arguments:

[ message ]

Variable or string containing a message to write to the NT application event log.

Options:

/type=xx

Specifies the type of event being logged. If omitted, the default value if 1 (Error event) is used.

 

 

This script command writes a message to the NT application event log.

 

The /type option allows the event type to be specified. The permitted event types are listed below.

 

1 - Error event

2 - Warning event

3 - Information event

4 - Success Audit event

5 - Failure Audit event

 

Consider the following example.

 

LOGNTEVENT "This goes to the event log" /type=3

 

IMPORTANT

This command is not functional in scripts run in the security context of an account with insufficient privileges.

 

 

Related Command(s): LOGMSG, CONSOLEMSG, DASHBOARDMSG, MESSAGEBOX, PRINT, WRITEFILE