/
Sys_ClearEventlog
Sys_ClearEventlog
Description
This function clears the specified part of the eventlog
Syntax
Sys_ClearEventlog(sType, bCreateBackup) As Boolean
Parameters
sType (String)
Type of Event. Can be Application, System or Security
bCreateBackup (Boolean)
Create a backup. Backup will be placed in %WinDir%\System32\EventlogBackup\<TYPE>_<DATE>.evt
Example
VBScript
If bStatus Then bStatus = Sys_ClearEventlog("Application", False) If bStatus Then bStatus = Sys_ClearEventlog("Security", True) If bStatus Then bStatus = Sys_ClearEventlog("System", False)
Related functions
Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner
, multiple selections available,
Related content
Log_RemoveLogs
Log_RemoveLogs
More like this
Log_SubmitLogs
Log_SubmitLogs
More like this
Log_RegisterWellKnownFiles
Log_RegisterWellKnownFiles
More like this
Log_RegisterExcludeValue
Log_RegisterExcludeValue
More like this
$cs.Job_WriteLog
$cs.Job_WriteLog
More like this
$cs.Sys_WaitForProcessToExist
$cs.Sys_WaitForProcessToExist
More like this