--- title: "Change the Inactive Agents query: best practice" slug: "change-the-inactive-agents-query-best-practice" tags: ["Product Usage", "ePolicy Orchestrator – On-prem", "ePO 5.10.x", "ePO 5.10.0"] updated: 2026-09-07T17:46:26Z published: 2026-09-07T17:46:26Z canonical: "docs.trellix.com/change-the-inactive-agents-query-best-practice" --- > ## 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. # Change the Inactive Agents query: best practice If the default **Inactive Agents** query is not configured to match your needs, you can duplicate the query and use it as a base to create your custom query. Deleting the inactive agents that have not communicated in last month is the default setting for the preconfigured **Inactive Agents** query. If you want to change the default timer setting, make a copy of the **Inactive Agents** query. The instructions in this task describe how to create a copy of the existing **Inactive Agents** query to change the deadline to 2 weeks. For details about product features, usage, and best practices, click ? or Help. 1. To duplicate the **Inactive Agents** query, select **Menu** → **Reporting** → **Queries & Reports**, then find the **Inactive Agents** query in the list. 2. In the **Actions** column of the **Inactive Agents** query, click **Duplicate**. 3. In the **Duplicate** dialog box change the name, select a group to receive the copy of the query, then click **OK**. 4. Navigate to the duplicate query that you created and, in the **Actions** column, click **Edit** to display the preconfigured **Query Builder**. 5. To change the **Filter** tab settings from once a month to every two weeks, set the **Last Communications** property, **Is not within the last** comparison, to **2** **Weeks** value. > [!NOTE] > Note > > Don't change the **and Managed State** property, **Equals** comparison, or the **Managed** value. 6. Click **Save**. Now your new **Inactive Agents** query is ready to run from a server task to delete systems with an inactive agent.