--- title: "Create on-demand scan task" slug: "create-on-demand-scan-task" tags: ["Security for MS Exchange", "Product Usage"] updated: 2026-09-02T14:48:28Z published: 2026-09-02T14:48:28Z canonical: "docs.trellix.com/create-on-demand-scan-task" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Create on-demand scan task Schedule an on-demand scan task to find or remove viruses and banned content in mailboxes, at convenient time intervals. Make sure that you do not remove the **MSMEODuser** from active directory, that was created during the product installation. This user is required for performing on-demand scans on mailboxes. ### Note Enable **Stop task after it has run for** **hour(s)** **minute(s)**, to stop an on-demand scan task if it exceeds the specified hours. 1. Click Dashboard → On-Demand Scans. The **On-Demand Scans** page appears. 2. Click **New Scan**. The **Choose when to scan** page appears. 3. From **Choose a time** tab, specify when you want the scan to run. The available options are: - **Not scheduled** — Select this if you have not decided on when to perform the on-demand scan or disable the schedule for an existing on-demand scan. - **Once** — Specify the date and time to schedule an on-demand scan once. - **Hours** — Select this to schedule the task based on hours, if you have to execute the on-demand scan task for more than once in a day. For example, let's consider that the current time is 14:00 hours and you have to create an on-demand scan task that satisfies these conditions: - The on-demand scan must start exactly at 14:30 hours - The on-demand scan must occur twice a day To achieve this, specify **`12`** for hours and **`30`** for minutes. - **Days** — Select this to schedule the task based on how often the scan must occur in a week. For example, if you want the on-demand scan to occur once in three days, specify **`3`** under **day(s)** and select the time when the task starts. - **Number of Weeks** — Select this to view the items scanned for the past n number of weeks. For example, to view the files scanned by the on-demand scan for the last 8 weeks, type **`8`** under **Number of Weeks**. - **Number of Months** — Select this to view the items scanned for the past n number of months. For example, to view the files scanned by the on-demand scan for the last 4 months, type **`4`** under **Number of months**. 4. Click **Next**. The **Choose what to scan** page appears. The available options are: - **Scan all folders** — Select this to scan all the mailboxes in the Exchange server. - **Scan selected folders** — Select this to scan only specific mailboxes in the Exchange server. - **Scan all except selected folders** — Select this to scan all except specific mailboxes that are added to the **Folders to scan** list. ### Note In Microsoft Exchange SE, 2016, and 2019, the public folder appears as part of the mailbox and on-demand scanning is always recursive for public folders. 5. Click **Next**. The **Configure scan settings** page appears. 6. From the **Policy to use** drop-down list, select any of the policy option based on your scan requirement. The settings and actions to take are specified in on-demand policies found under **Policy Manager**. 7. Select the **Resumable Scanning** and **Restart from last item** options to run the on-demand scan task in multiple sessions on mailbox database. ### Tip Sometimes, you might want to run an on-demand scan task for all mailboxes. Scanning all mailboxes in one session might take longer time and that can affect the system's productivity. Instead of scanning all mailboxes in one session, you can schedule the scan for multiple sessions. 8. On Exchange Server, you now have the option to perform a granular on-demand scan task. You can narrow down the scan using these fields: | Option | Definition | | --- | --- | | **Subject contains** | | | **From contains** | | **To contains** | | **Message ID** | | **Recipients contains** | | **Items received** | Select this option to scan items for a specific period. **Number of weeks:** Select the number of weeks to perform scan. **Number of Months:** Select the number of months to perform scan. **From:** Select the starting date for which you want to perform scan. **To:** Select the date to which you want to perform scan. | | **Continuity scan** | Scans items for the past one year using any of these filters. **Scan for past weeks** **Scan for past months** **Scan for past days** | | **Mail Size** | Used this to scan items based on file size. **From:** Select the minimum size of files. **To:** Select the maximum size of files. | | **Items with attachment** | | | **Unread items** | | Performing a granular on-demand scan saves you time and fetches specific scan results. 9. Click **Next**. The **Enter a name for the scan** page appears. 10. Specify a meaningful on-demand scan task name, based on the policy you selected in the previous page. For example, if you are creating an on-demand scan task to do a full scan over the weekend, specify the task name as **`Weekend Full Scan`**. 11. Click **Finish**, then **Apply**. By performing these steps, you have successfully created an on-demand scan task. :