--- title: "Performing remediation on demand using the CLI" slug: "performing-remediation-on-demand-using-the-cli" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-08-24T19:53:02Z published: 2026-08-24T19:53:02Z canonical: "docs.trellix.com/performing-remediation-on-demand-using-the-cli" stale: true --- > ## 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. # Performing remediation on demand using the CLI You can remediate retroactively detected emails and delivered clean emails manually using the CLI. ### Prerequisites - Administrator or Operator access to the Email Security - Server appliance. - A connection to the Email Security - Server appliance. - Microsoft Office 365 app communication and authorization. **To quarantine or delete an email manually:** 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. View retroactively detected malicious emails or delivered clean emails and retrieve the queue ID of missed emails from a specified period or from a specified sender to a specified recipient. - Email for a specified period: ``` hostname (config) # show email-analysis missed from to ``` ``` -------------------------------------------------------------------------------- Missed Email(s): ----------------------------------------------------------------------------------- Queue_ID          Date                  From             To                 Subject 486hqK0YbHz1TGfT  28 Jan 2020 17:58:21  Sender@acme.com  Receiver@acme.com  welcome                   486hmk15Hhz1TGfT  28 Jan 2020 17:56:06  Sender@acme.com  Receiver@acme.com  welcome ``` - Missed email from a specified sender to a specified recipient: ``` hostname (config) # show email-analysis missed from-email-id to-email-id ------------------------------------------------------------------------------ Missed Email(s): ---------------------------------------------------------------------------------- Queue_ID          Date                  From            To                 Subject 486hqK0YbHz1TGfT  28 Jan 2020 17:58:21  Sender@acme.com Receiver@acme.com  welcome                     486hmk15Hhz1TGfT  28 Jan 2020 17:56:06  Sender@acme.com Receiver@acme.com  welcome ``` 3. Enter the queue ID of the missed email or delivered clean email to delete or quarantine based on the configuration in the WebUI or using the `email-analysis o365 remediation policy` command in the CLI. ``` hostname (config) # email-analysis remediation queue-id ```