Inside Activate
Jobs and Tasks
MaintenanceScript
6 min
background the maintenancescript in the system tasks > background (which should be run nightly) runs the following functions which this article will go into detail of the function of each fixdirectoryreferences updatecachewithdeletedobjects updateindex performsystemmaintenance updatetotaltimes fixdirectoryreferences loads all invalid directory references and runs a verify against each the verify will attempt to locate and fix the reference, otherwise it will raise an admin task for manual correction by administrators invalid references are defined as parameters that reference directory objects (users, groups, folders, dls, mailboxes, sharepoint, teams) where the reference does not match the display name, dn and guid correctly updatecachewithdeletedobjects inspects all of the active directory provider resources and deletes any cache entries for objects in that directory that are now marked as deleted updateindex does a full rebuild of the search index used on the web a full rebuild means that items that no longer exist are deleted from cache, new entries added and updated entries updated performsystemmaintenance delete old notifications deletes any pending notifications where the event time is more than 30 days old deletes any notifications for the system account delete old emails deletes top 1000 emails older than 30 days perform database maintenance completes all system jobs with no workflow these are jobs that are used to capture system/active directory/connector logs and have no workflow deletes the top 1000 attachments that are older than 7 days and have never been linked to a job deletes the top 1000 logtrace entries from the job log where the job is between 1 and 2 years old delets the top 1000 group member cache for groups that have been deleted perform connector maintenance deletes the top 1000 connector log entries that are older than 1 year