--- title: "Apply tags using queries" slug: "apply-tags-using-queries" tags: ["Product Usage", "TLX-EPO-S"] updated: 2026-09-03T18:02:41Z published: 2026-09-03T18:02:41Z canonical: "docs.trellix.com/apply-tags-using-queries" --- > ## 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. # Apply tags using queries You can use queries to extract the specific list of systems and apply tags on systems, based on selected tags. In addition, you can remove and exclude tags from the listed systems. For example, you can apply the **Server** tag, then remove the **Workstation** tag. [Create tags](/v1/docs/create-tags-in-epo-saas) For details about product features, usage, and best practices, click ? or Help. - Open the **Server Task Builder**. 1. Select **Menu** → **Automation** → **Server Task**. 2. Click **New Task** 1. On the **Description** page, name and describe the task, then click **Next**. 2. Select **Enabled** in the Schedule status to run the task at the next scheduled occurrence. If you select **Disabled**, the task runs when you click **Run**. 3. From the **Actions** drop-down list, select **Run Query**. 4. In the **Query** field, select one of these queries from the **Groups** tab, then click **OK**. 5. Select the language for displaying the results. 6. From the **Sub-Actions** list, select one of these subactions to take on the query result. - **Apply Tag** — Applies a selected tag to the systems returned by the query. - **Clear Tag** — Removes a selected tag on the systems returned by the query. Select **Clear All** to remove all tags from the systems in the query results. - **Exclude Tag** — Excludes systems from the query results if they have the selected tag applied to them. 7. From the **Select Tag** window, select a tag group from the **Tag Group Tree** and optionally filter the list of tags by specifying **Tags**. > [!NOTE] > Note > > Click the **+** button to add more actions. Be careful to place the actions in the order that you want them to occur. 8. Click **Next**. 9. Schedule the task, then click **Next**. 10. Verify the configuration of the task, then click **Save**. The task is added to the list on the **Server Tasks** page.