How to Fix TransportRule Deletions Missing from Exchange Audit Log
Question details
Investigating why deleted mail flow rules do not appear in the Exchange or Microsoft Purview audit log and checking if they can be recovered.

- Product
- Microsoft Exchange / Microsoft Purview
- Device & OS
- not provided
- Scenario
- An administrator is trying to trace the deletion of a mail flow rule but cannot find the expected log entries.
- Observed behavior
- The Remove-TransportRule activity is missing from the audit logs, making it impossible to see who deleted the rule or when it was removed.
Ensure you have global administrator or Exchange administrator permissions, and confirm that Unified Audit Logging is currently enabled in your Microsoft Purview compliance portal.
Verify Audit Log Settings and Search Parameters
Use the exact operation parameters and ensure auditing features were active to correctly locate the deletion event.
Audit logs can easily miss specific administrative events if the search parameters are too broad or if the exact command isn't specified. Validating your search query is the first step to finding missing Remove-TransportRule activities.
Check your Microsoft Purview settings to confirm that unified auditing was turned on at the specific time the mail flow rule deletion occurred.
Set the search date range in the Purview audit log search tool to accurately encompass the timeframe when the rule went missing.
Filter your audit search using the exact operation name 'Remove-TransportRule' rather than generic terms like 'deleted rule'.
Confirm that your account has the appropriate Exchange Admin and Audit Logs search roles assigned to view these specific administrative actions.

Investigate Alternative Deletion Sources and Recreate Rules
Determine if the rule was deleted via alternative methods and manually restore it from documented backups.
Document Your IT Configurations Effectively with WPS Office
While WPS Office cannot directly manage Microsoft Exchange servers or restore mail flow rules, it is the perfect lightweight and free alternative to Microsoft Office for documenting your IT policies, storing configuration backups, and maintaining audit reports.
- 1. Install the Software: Download and install WPS Office Free on your administrative workstation.
- 2. Create a Configuration Tracker: Open WPS Spreadsheet to build a reliable tracking log for all your Exchange mail flow rules and updates.
- 3. Document Standard Operating Procedures: Use WPS Writer to outline step-by-step recovery and audit procedures for your IT team.
- 4. Export to PDF: Save your finalized documentation as a PDF for a secure, unalterable backup of your server configurations.

Frequently Asked Questions
Can I automatically restore a deleted Exchange mail flow rule?
No, deleted mail flow rules (TransportRules) generally cannot be restored automatically through Exchange. You must manually recreate them using documented settings, screenshots, or configuration backups.
How long are audit records kept in Microsoft Purview?
By default, audit records are retained for 180 days for users with standard licenses. Organizations with premium audit licenses can retain logs for up to 1 year or longer, depending on configured retention policies.
Why would Remove-TransportRule not show up even if auditing is on?
The activity might be missing if your search date range is incorrect, the audit log feature was disabled at the exact moment of deletion, or the action was performed by an automated system/service principal that bypasses standard audit logging.




