Logo
CAR REVIEW
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
PREGNANCY
 
 
Windows Server

Microsoft Exchange Server 2010 : Setting Up Transport Rules (part 5) - Creating New Rules with the Exchange Management Shell

2/13/2014 3:42:53 AM

5. Creating New Rules with the Exchange Management Shell

The following Exchange Management Shell commands let you add, change, remove, enable, or disable transport rules that are used by the Transport Rules agent on a Hub Transport server or an Edge Transport server:


Get-TransportRule

This cmdlet shows you the existing transport rules in your organization (if run on an HT server) or Edge server (if run on an ET server):

Get-TransportRule


Enable-TransportRule

This cmdlet sets an existing transport rule as enabled, which means it will be applied to messages:

Enable-TransportRule -Identity MyTransportRule


Disable-TransportRule

This cmdlet sets an existing transport rule as disabled, which means that it will still be present in the configuration but will not be applied to messages:

Disable-TransportRule -Identity MyTransportRule

The Disable-TransportRule cmdlet is useful for troubleshooting problems with transport rules. You can also disable all transport rules with this command:

Get-TransportRule | Disable-TransportRule


Remove-TransportRule

This cmdlet allows you to delete an existing transport rule:

Remove-TransportRule -Identity TransportRuleToDelete


Set-TransportRule

This cmdlet allows you to modify the parameters of an existing transport rule:

$Condition = Get-TransportRulePredicate FromMemberOf 

$Condition.Addresses = @((Get-DistributionGroup "Sales Group"))

Set-TransportRule -Identity FromSales -Condition @($condition)

To make this cmdlet manageable, we made use of variables to create the condition from a member of the distribution list and fill its Addresses property with the Sales Group distribution list. We then passed the variable into the Set-TransportRule cmdlet, modifying the condition of the FromSales rule.


New-TransportRule

This cmdlet allows you to create a new transport rule. From the EMS, issue the following command for a full description of the cmdlet, including examples:

Help New-TransportRule -full

You may have noticed in the previous examples of creating or editing a transport rule that when you reference the actions or the conditions, you have to use the object names. You can retrieve a list of the actions by using the Get-TransportRuleAction cmdlet and a list of the conditions using the Get-TransportRulePredicate cmdlet.

Other -----------------
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Using SMS Trace (part 2)
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Using SMS Trace (part 1) - Obtaining SMS Trace
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Using SMS Service Manager
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Status Message Process Flow
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Working with Status Message Queries
- Microsoft Systems Management Server 2003 : Filtering Status Messages (part 2) - Status Filter Rules
- Microsoft Systems Management Server 2003 : Filtering Status Messages (part 1) - Configuring Status Reporting Properties
- Exchange Server 2007 : Migrating from Windows 2000 Server to Windows Server 2003 (part 6) - Upgrading Domain and Forest Functional Levels
- Exchange Server 2007 : Migrating from Windows 2000 Server to Windows Server 2003 (part 5) - Moving Operation Master Roles
- Exchange Server 2007 : Migrating from Windows 2000 Server to Windows Server 2003 (part 4) - Replacing Existing Domain Controllers
- Exchange Server 2007 : Migrating from Windows 2000 Server to Windows Server 2003 (part 3) - Upgrading the AD Schema Using adprep
- Exchange Server 2007 : Migrating from Windows 2000 Server to Windows Server 2003 (part 2) - Upgrading a Single Member Server
- Exchange Server 2007 : Migrating from Windows 2000 Server to Windows Server 2003 (part 1) - Beginning the Migration Process
- Microsoft Systems Management Server 2003 : Understanding Status Summarizers (part 3) - Configuring Status Summarizers - Site System Status Summarizer
- Microsoft Systems Management Server 2003 : Understanding Status Summarizers (part 2) - Configuring Status Summarizers - Component Status Summarizer
- Microsoft Systems Management Server 2003 : Understanding Status Summarizers (part 1) - Display Interval , Status Message Thresholds
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Working with Status Messages (part 2) - Setting Status Message Viewer Options
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Working with Status Messages (part 1) - Viewing Site Status Messages
- Microsoft Dynamic CRM 4 : Data Migration (part 4) - Creating a Data Migration
- Microsoft Dynamic CRM 4 : Data Migration (part 3) - Creating a CRM Adapter Publisher
 
 
Most view of day
- Sharepoint 2013 : The Office JavaScript Object Model (part 3) - App Security
- SQL Server 2008 R2 : Creating and Managing Stored Procedures - Using Output Parameters, Returning Procedure Status
- Microsoft Content Management Server Development : Validating Placeholder Controls - Validating the SingleImagePlaceholderControl
- BizTalk 2006 : Creating More Complex Pipeline Components (part 4) - Custom Disassemblers
- Exchange Server 2007 : Leveraging the Capabilities of the Outlook Web Access Client - What’s New in OWA 2007?
- Customizing Windows 7 : Change the Desktop Background
- Windows Small Business Server 2011 : Disaster Planning - Preparing for a Disaster, Restoring from Backup
- Workflow in Dynamics AX 2009 : Workflow Life Cycle (part 1) - State Model
- Editing Digital Video with Windows Live Movie Maker (part 8) - Sharing Your Videos - Publishing to the Web
- Windows Phone 8 : Designing for the Phone - Microsoft Expression Blend
Top 10
- Windows Phone 8 : Scheduled Tasks - Scheduled Task API Limitations
- Windows Phone 8 : Scheduled Tasks - Updating Tiles Using a Scheduled Task Agent
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 5) - Editing an Existing To-Do Item
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 4) - Creating the To-Do Item Shell Tile, Saving a To-Do Item
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 3) - Debugging Scheduled Tasks
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 2) - TodoService, TodoItemViewModel
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 1) - TodoItem,TodoDataContext
- Windows Phone 8 : Scheduled Tasks - Using Scheduled Tasks
- Windows Phone 8 : Scheduled Tasks - Background Agent Types
- Windows Phone 8 : Windows Phone Toolkit Animated Page Transitions - Reusing the Transition Attached Properties
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro