Sys_CheckEventlogForSystemErrors
Description
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.
General disable:
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.Â
Syntax
Sys_CheckEventlogForSystemErrors() As Boolean
Example
VBScript
If bStatus Then bStatus = Sys_CheckEventlogforSystemErrors()