--- title: "Configuring remediation for Exchange On-prem users using the CLI" slug: "configuring-remediation-for-exchange-on-prem-users-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/configuring-remediation-for-exchange-on-prem-users-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. # Configuring remediation for Exchange On-prem users using the CLI Use the CLI commands to configure Exchange On-prem remediation. ###### Prerequisites Before configuring the remediation feature for Microsoft Exchange, ensure the following requirements are met: - **Full Mailbox Access:** You must identify or create a dedicated service account within your Exchange environment. The service account must be granted FullAccess permissions to all user mailboxes within the organization that require remediation coverage. - Ensure EWS is enabled for the service account. **To enable remediation for Exchange On-prem users:** 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Enable the remediation. ``` hostname (config) # email-analysis remediation enable ``` 3. Configure the server of Exchange (On-prem). ``` hostname (config) # email-analysis remediation exchange config server ``` 4. Configure the username and password of Exchange server. ``` hostname (config) # email-analysis remediation exchange config username password ``` 5. Set the mode to **Exchange** or **Cloud**. ``` hostname (config) # email-analysis remediation mode exchange hostname (config) # email-analysis remediation mode cloud ``` 6. Configure an automatic remediation policy for retroactively detected malicious email. ``` hostname (config) # email-analysis remediation policy {pull | quarantine } ``` - quarantine—Blocks retroactive malicious email. - pull—Deletes retroactive malicious email. 7. Perform the submission and add this submission for manual remediation. ``` hostname (config) # email-analysis remediation queue-id ``` 8. Save your changes. ``` hostname (config) # write memory ``` 9. Verify the configuration for Exchange remediation. ``` hostname (config) # show email-analysis remediation ```