Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

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

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server