Exchange Transport Rule - Auditing Last Execution

Anonymous
2023-12-13T17:08:07+00:00

I am trying to determine if there is a way with Powershell that I can audit transport rules that may no longer have activity. I see in the admin center a column called "last execution". Is there a way to get this VIA Powershell?

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-14T00:20:34+00:00

    Hello,

    Unfortunately, I don't have any further troubleshooting to offer.

    Many knowledgeable users are active on the forum, and I hope someone else can offer further insight into your issue.

    Thanks.

    Ajibola.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-12-13T19:37:03+00:00

    Yeah, I tried that one. Did not see a way to get the "last executed" results.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-12-13T18:38:37+00:00

    Hello,

    It seems that this cmdlet is not available in the cloud-based service, but only in on-premises Exchange. If you are using Exchange Online, you can use the Get-MailDetailTransportRuleReport cmdlet instead, which can provide similar information about the messages that match the transport rules in your organization.

    Note: You might need to translate the page content in the link shared below.

    https://learn.microsoft.com/powershell/module/exchange/get-maildetailtransportrulereport?view=exchange-ps

    If you have any further questions or need additional assistance, please feel free to ask. I'm here to help!

    Give back to the Community. Help the next person with this issue by indicating if this reply solved your problem. Click Yes or No below.

    Kind regards.

    Ajibola.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-12-13T18:03:21+00:00

    Get-TransportRuleStatistics seems like the command that would get what I am looking for but does not appear to be a valid Powershell command.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2023-12-13T17:48:25+00:00

    Greetings! I am Ajibola, and I am eager to assist you with confidence and assertiveness. I guarantee to provide you with exceptional support.

    You can use the Get-TransportRule cmdlet to get a list of all transport rules in your organization. Then, you can use the Get-MailDetailTransportRuleReport cmdlet to get a report of the actions and events associated with each rule. You can filter the report by date, sender, recipient, or rule name. You can also use the Get-MessageTrace and Get-MessageTraceDetail cmdlets to get more information about the messages that triggered the rules.

    You can use the Get-AdminAuditLogConfig cmdlet to get the configuration settings for the administrator audit log. This log records any changes made to the transport rules by administrators or users who have been assigned administrative privileges. You can use the Search-AdminAuditLog cmdlet to search for and view specific actions, based on Exchange Online PowerShell cmdlets, performed by these users. You can filter the search by date, user, object, or cmdlet.

    You can use the Get-TransportRuleStatistics cmdlet to get statistics for the transport rules in your organization. This cmdlet returns information such as the name, identity, priority, state, and last hit time of each rule. The last hit time indicates the last time the rule was applied to a message. You can use this information to identify the rules that may no longer have activity.

    Note: You might need to translate the page content in the link shared below.

    https://learn.microsoft.com/powershell/module/exchange/get-transportrule?view=exchange-ps

    https://learn.microsoft.com/exchange/security-and-compliance/mail-flow-rules/manage-mail-flow-rules

    If you have any further questions or need additional assistance, please feel free to ask. I'm here to help!

    Give back to the Community. Help the next person with this issue by indicating if this reply solved your problem. Click Yes or No below.

    Kind regards.

    Ajibola.

    Was this answer helpful?

    0 comments No comments