Sys\_CheckEventlogForSystemErrors
Description
Section titled “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:
Section titled “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
Section titled “Syntax”Sys_CheckEventlogForSystemErrors() As Boolean
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Sys_CheckEventlogforSystemErrors()Related functions
Section titled “Related functions”