--- title: "Exclude files or directories from scanning" slug: "exclude-files-or-directories-from-scanning-13" tags: ["Product Usage", "Endpoint Security (ENS)", "ENS 10.7.x"] updated: 2026-10-07T17:45:09Z published: 2026-10-07T17:45:09Z canonical: "docs.trellix.com/exclude-files-or-directories-from-scanning-13" --- > ## 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. # Exclude files or directories from scanning Exclude files or directories from on-access scanning and on-demand scanning. 1. Log on to the ePO - On-prem server as an administrator. 2. From the **Policy Catalog**, select **Endpoint Security Threat Prevention** as the product, then select **On-Access Scan** or **On-Demand Scan** as required. 3. Click the policy, then click **Show Advanced**. If you haven't created a policy, click **New Policy**, type a name for the policy, then click **OK**. 4. In the **Exclusion** area under **Process Settings**, click **Add** and define these settings as required, then click **Save**. | In... | Configure... | | --- | --- | | **What to exclude** | - **Pattern (can include wildcards * or ?)** — Specifies the file pattern to exclude. For example, to exclude all files in the desktop from scanning, specify the path as `/Users/user/Desktop/*` - **Also exclude subfolders** — Excludes files and directories from the specified location. - **File type (can include wildcard ?)** — Excludes files that contain the extension. - **File Age** — Excludes files based on their age in terms of creation date and modified date. - **Modified** — Excludes files that were edited earlier to the days specified in the **Minimum age in days** field. - **Created** — Excludes files that were created earlier to the days specified in the **Minimum age in days** field. - **Accessed** — (On-Demand Scan only) Excludes files that were accessed earlier to the days specified in the **Minimum age in days** field. Select **Overwrite exclusions configured on the client** (On-Access Scan only) to overwrite the client exclusion list. | | **When to exclude** | - **On read** — (On-Access Scan only) Excludes from scanning when the file is accessed. - **On write** — (On-Access Scan only) Excludes from scanning when the file is changed. |