O'Reilly logo

Microsoft Exchange 2010 PowerShell Cookbook by Mike Pfeiffer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required