--- title: "Adding and removing files and folders" slug: "adding-and-removing-files-and-folders" updated: 2026-09-08T19:11:22Z published: 2026-09-08T19:11:22Z canonical: "docs.trellix.com/adding-and-removing-files-and-folders" --- > ## 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. # Adding and removing files and folders Using the Web UI or the CLI, you can add and remove files and folders in the Exploit Guard exception policy exclusion list. - [Adding Excluded Files and Folders Using the Web UI](/docs/adding-and-removing-files-and-folders#UUID-2ef46929-6816-4f8c-a459-7c91ac6d9b8d_id_adding) - [Removing Excluded Files and Folders Using the Web UI](/docs/adding-and-removing-files-and-folders#UUID-2ef46929-6816-4f8c-a459-7c91ac6d9b8d_id_removing) ### Note Use of an Exploit Guard exception policy is not recommended. ### Adding excluded files and folders using the web UI ###### To add files and folders to the exception policy exclusion list using the Web UI: 1. Log in to the Web UI as an administrator. 2. Access the Policies page by selecting **Policies** on the **Admin** menu. 3. Select the **Exploit Guard** tab. 4. In the **Exceptions for Selected Host Sets** section, verify that the **Exclude files and folders from Exploit Guard for the selected host sets** option is selected. 5. In the field under the **Exclude files and folders from Exploit Guard for the selected host sets** option, specify a file or folder you want to exclude from Exploit Guard processing for the endpoints in the host sets selected in the exception policy. ### Caution - File and folder exclusions apply to file write events only. - UNC names are supported in excludedPaths. - On Windows endpoints, file and folder paths must start with a drive letter followed by a colon (`C:`) or UNC name (`\\Server\Share`). - System environment variables are supported in excludedPaths: - %ProgramFiles%, %ProgramFiles(x86)%, %ProgramW6432%, %CommonProgramFiles%, %ProgramData% - %SystemDrive%, %SystemRoot%, %windir% - %ALLUSERSPROFILE%, %PUBLIC% ### Important Use care when specifying system environment variables in folder paths. Their expanded paths may vary based on the installed version of Windows. For complete information about Windows environment variables, refer to your Windows documentation (Microsoft TechNet). User-specific environment variables are not supported because the Endpoint Security (HX) xAgent runs on the endpoint as `SYSTEM`. For example, `%HOMEDRIVE%\Users\*\Documents\*.*` is an invalid path because it includes a user-specific environment variable. Wildcard characters (`*`) and (`?`) are not supported in file and folder paths. - The following table lists examples for excluding files and folders from real-time detection processing. Reference these examples when adding file and folder excludedPaths to your real-time indicator detection exclusion list. | Exclusion Method | Exclusion Example | | --- | --- | | Exclude a specific file name. | `myfile` | | Exclude a specific file name located in a specific directory. | `C:\Users\Admin\Documents\myfile.txt` | | Exclude all files in a specific directory. | `C:\Users\Admin\Documents` | | Exclude all files and sub directories in a specific directory. | `C:\Users\Admin\Documents` | 6. Click **Add** to add the file or folder to the list. 7. Repeat Steps 5 and 6 until you have added all the files and folders you want to the list. 8. Click **Save**. ### Removing excluded files and folders using the web UI To remove files and folders from the exception policy exclusion list using the Web UI: 1. Log in to the Web UI as an administrator. 2. Access the Policies page by selecting **Policies** on the **Admin** menu. 3. Select the **Exploit Guard** tab. 4. In the **Exceptions for Selected Host Sets** section, locate the file or folder you want to remove from the list below the **Exclude files and folders from Exploit Guard for the selected host sets** option. 5. Click the **X** icon next to the file or folder to remove it from the list. 6. Repeat Step 5 until you have removed all the files or folders you want from the list. 7. Click **Save**. :