|
| KiXtart Command Reference |
LOGEVENTactionLogs an event in the Windows NT event log. syntaxLOGEVENT (type, ID, message, target, source) parameterType Number representing the type of the event. Possible values :
ID Number representing the event that occurred. Message Message text of the event. Target Optional parameter representing the UNC name of the system where the event should be logged. By default, all events are logged on the local system. Source Optional parameter representing the source of the event. If this parameter is not specified, KiXtart will assume the KIX32.EXE as the source of the event. returns
remarksThis function is only available on Windows NT clients. example$RC = LogEvent( 0 , 1 , Logon script completed successfully , , MyEvent ) $RC = LogEvent( 0 , 1 , Logon script completed successfully) $RC = LogEvent( 1 , 1 , Logon script failed! , @LSERVER ) |