How can I create and configure a scheduled scan with WithSecure Cloud Protection?
The Scheduled Scanning feature in WithSecure Cloud Protection allows you to (re)scan Salesforce files and attachments for harmful and disallowed content at regular intervals (daily, weekly, monthly) and predefined times.
When you create a scheduled scan job, the current manual scan settings will be used as the basis for the scheduled scan. Nevertheless, the scheduled scan settings are independent from the manual scan settings, and can be changed if need be.
To create a scheduled scan job:
- Go to WithSecure Cloud Protection > Administration > Manual Scan.
- Configure the scan:
- Select the targets.
- Choose to scan content based on either the creation time or the modification time: set the current day as the end date. For the start date, set a date which would produce the desired date range within which the files were created or modified.
- An example: The current date is September 1. To scan the files that were created during August, set the end date to September 1 and the start date to July 31 (the date one month before today), so that it's the N+1 days of the desired period to scan.
- Note: You can set arbitrary dates and change the date range later in the AFSC__FS_ManualScanSetting__c custom object explained in article How can I change the scheduled scan settings in the custom object?.
- Define scan and notification settings.
- Select the maximum number of files to scan.
- Click first the Scheduled Scanning section to open it, and then click the Create button.
- You will be redirected to the Schedule Apex page:
- Configure the scheduled scan job by defining the following values:
- Job Name
- Apex Class (Set this to FS_ScheduledFileScan.)
- Frequency
- Start and End Date
- Preferred Start Time
- Click Save.
The scheduled scan job is created and will be executed according to your specifications.
Note: If you later want to modify the frequency, start and end dates, or the preferred start time of the scheduled scan job, you first have to delete the existing scheduled job and then create a new one.