Simplify user tasks like bulk creation, updates, password resets, deletions, license checks & more — all from one place.
🚀 Launch ToolkitEver started crafting a mail flow (transport) rule and paused—“wait, what actions are even available here?” Between quarantining messages, redirecting, adding headers, and more, it’s easy to forget the exact action names or parameters. Get-TransportRuleAction is your quick catalog: it lists the actions you can plug into transport rules, so you design policies confidently without guesswork.
Note: Microsoft Graph PowerShell does not administer org-level mail flow (transport) rules yet. For mail flow rule management, use Exchange Online PowerShell. Graph PowerShell today focuses on user/mailbox-level surfaces, not org-wide mail flow.
Get-TransportRuleAction [-Name <String>]
Key points
Get-TransportRuleAction
Outputs the full set of actions supported in your tenant—great for discovery and scripting.
Get-TransportRuleAction -Name Quarantine | format-list
Shows details for the Quarantine action (e.g., parameters, display info) so you can use it with confidence in New-TransportRule or Set-TransportRule.
Connect-ExchangeOnline using an account with appropriate roles (e.g., Organization Management).
The action name in PowerShell may differ from the friendly label you see in the admin center. Use this cmdlet to confirm the exact name/parameters for scripting.
Export the action list for your runbook:
Get-TransportRuleAction | Export-Csv .\transport-actions.csv -NoTypeInformation
Use Get-TransportRule to audit current rules, then consult Get-TransportRuleAction to standardize authorized actions.
Error | Cause | Solution |
---|---|---|
The term 'Get-TransportRuleAction' is not recognized | Not connected to Exchange Online / Module missing | Install/Update EXO V3 module and run Connect-ExchangeOnline. |
Empty/partial results | Insufficient permissions | Use an account with Organization Management or appropriate transport rule permissions. |
Action not found with -Name | Name mismatch (case or spacing) | Run without -Name to list all, then copy the exact action name. |
Get-TransportRuleAction is your blueprint for mail flow rule capabilities. Before you script or update policies, use it to confirm the exact actions (and parameters) supported in your tenant. You’ll design cleaner, more reliable rules—without trial-and-error. And remember: org-level mail flow rules are managed with Exchange Online PowerShell, not Graph, so keep this cmdlet close when you’re building or auditing transport rules.
© m365corner.com. All Rights Reserved. Design by HTML Codex