Transport rules can be used within your Exchange organization to take a specific action on a message, based on one or more conditions. For example, you can configure rules that check messages for confidential information or inappropriate content, and then take an action on those messages such as blocking them or forwarding them to another recipient. Exchange 2007 introduced transport rules for the first time, but with Exchange 2010, we now have an upgraded set of cmdlets that provide easier management of transport rules from the shell. In this recipe, you'll learn how to create transport rules using these cmdlets.
To create a transport rule, use the New-TransportRule
cmdlet:
New-TransportRule -Name Confidential ` -Enabled $true ` -SubjectContainsWords Confidential ` -BlindCopyTo [email protected]
Based on the condition and action for this transport rule, all messages that contain the word Confidential
in the subject line of a message will be blind...