Managing transport rules
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.
How to do it...
To create a transport rule, use the New-TransportRule
cmdlet:
New-TransportRule -Name Confidential ...
Get Microsoft Exchange 2010 PowerShell Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.