--- title: "Enabling the Cancel Setting for On-Demand Scans" slug: "enabling-the-cancel-setting-for-on-demand-scans" updated: 2026-09-08T19:10:56Z published: 2026-09-08T19:10:56Z canonical: "docs.trellix.com/enabling-the-cancel-setting-for-on-demand-scans" --- > ## 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. # Enabling the Cancel Setting for On-Demand Scans ### Important You must enable malware detection **(Signature and Heuristic Detection)** and **Scheduled Scans** before you enable the cancel setting for on-demand malware scans. **To enable the cancel malware scan setting for all host endpoints:** 1. Log in to the Web UI as an administrator. 2. From the **Admin** menu, select **Policies** to access the **Policies** page. 3. In the Policies table, click the **Agent Default Policy** link to access the **Edit Policy** page. 4. Select the **Malware Scans** tab. 5. In the Malware Scans section, verify that the **Scheduled Scans** ON/OFF switch is turned **ON**. ![UI_Policy_MalScan_Enable.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-75f4bbe3-4b22-ad87-265a-2d6941799d22(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A13%3A49Z&se=2026-11-22T14%3A13%3A49Z&sr=c&sp=r&sig=bHbql78KtCmRlRgQcErOooWGNKFB8gANnx0F8F7uaiU%3D) 6. In the Scan Settings section, toggle the **User Canceled Scans** ON/OFF switch and set it to **ON**. ![UI_Policy_MalScan_Cancel_Enable.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-6ed653f0-6a57-8e93-d602-225754b165bd(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A13%3A49Z&se=2026-11-22T14%3A13%3A49Z&sr=c&sp=r&sig=bHbql78KtCmRlRgQcErOooWGNKFB8gANnx0F8F7uaiU%3D) 7. Click **Save**. **To enable the cancel malware scan setting for selected host sets:** ### Note [See Creating a Custom Policy](/docs/creating-a-custom-policy) for more information about using the Web UI to create a custom policy. 1. Log in to the Web UI as an administrator. 2. From the **Admin** menu, select **Policies** to access the **Policies** page. 3. In the Policies table, click the link for the custom policy you want to modify. 4. Select the **Malware Scans** tab. 5. In the Malware Scans section, verify that the **Scheduled Scans** ON/OFF switch is turned **ON**. ![UI_Policy_MalScan_Enable.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-75f4bbe3-4b22-ad87-265a-2d6941799d22(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A13%3A49Z&se=2026-11-22T14%3A13%3A49Z&sr=c&sp=r&sig=bHbql78KtCmRlRgQcErOooWGNKFB8gANnx0F8F7uaiU%3D) 6. In the Scan Settings section, toggle the **User Canceled Scans** ON/OFF switch and set it to **ON**. ![UI_Policy_MalScan_Cancel_Enable.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-6ed653f0-6a57-8e93-d602-225754b165bd(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A13%3A49Z&se=2026-11-22T14%3A13%3A49Z&sr=c&sp=r&sig=bHbql78KtCmRlRgQcErOooWGNKFB8gANnx0F8F7uaiU%3D) 7. Click **Save**. Now you can assign host sets to the custom policy and set the policy priority level. See [Assigning Host Sets to Agent Policies](/docs/assigning-host-sets-to-xagent-policies) and [Configuring Policy Priority Using the Web UI](/docs/configuring-policy-priority-using-the-web-ui) for more information. :