Skip to content

Sys\_CheckEventlogForSystemErrors

Checks if any critical errors occurs in the Windows Eventlog on local machine and logs errors if any.
The errorstring from the Eventlog will be returned in gsValue.

To disable Sys_CheckEventlogForSystemErrors for a client set the following registry key:
HKLM\Software\CapaSystems\CapaInstaller 
Variable: DisableEventchk 
Value: True

To disable Sys_CheckEventlogForSystemErrors for all client set the following variable in customlib.cis 

gbDisableEventChk=True

The statement must be placed in the function IncludeScriptingLibrary before the following line “IncludeScriptingLibrary=bStatus. Afterwards customlib.cis must be deployed to all computers.

Sys_CheckEventlogForSystemErrors() As Boolean

VBScript

If bStatus Then bStatus = Sys_CheckEventlogforSystemErrors()

Scripting Guidelines

Job_ErrorHandling