Microsoft 365

Exchange: How to create Inbox Rules with PowerShell

There are two ways for creating Inbox Rules: The user itsself in Outlook or the Exchange Administrator can establish Rules based on specific conditions. In this article I describe the establishing of Inbox Rules on an Exchange Server by using PowerShell.

Creating Inbox Rules in Exchange Management Shell

Open Exchange Mangagement Shell.

Example

If the subject of the incoming message contains the word TeamMeeting, then forward the E-Mail to another Mailbox.

New-InboxRule -Name ArnoldtoSyl -Mailbox "Arnold Schwarzenberg" -SubjectContainsWords "TeamMeeting" -ForwardTo "Sylvester Stollane"

1.PNG

To check the recently configured rule, run Get-InboxRule.

Get-InboxRule -Mailbox "Arnold Schwarzenberg" -Identity ArnoldtoSyl | Format-List

Get more out of Inbox Rules

There are more than just words as a criterion. To explore the possibilities run New-InboxRule and then type – and then press CTRL + Shift. This will show you all Parameters.

2.PNG

Or run Get-Help to list all parameters.

Get-Help New-InboxRule -Parameter *

Microsoft Technet: https://technet.microsoft.com/en-us/library/dd335170(v=exchg.160).aspx

See also

In my German article Exchange/Outlook: Mailbox Weiterleitungen mit Get-Mailbox und Get-Inboxrule finden I described how to find out which Inbox Rules are used in your Organization.

Categories: Microsoft 365, PowerShell

Tagged as: , ,

1 reply »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.