Export (0) Print
Expand All


Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Set-JournalRule cmdlet to modify an existing journal rule on a Hub Transport server.

Set-JournalRule -Identity <RuleIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-JournalEmailAddress <RecipientIdParameter>] [-Name <String>] [-Recipient <Nullable>] [-Scope <Internal | External | Global>] [-WhatIf [<SwitchParameter>]]

Parameter Required Type Description




The Identity parameter specifies the GUID or name of the rule to be modified.

The Identity parameter is a positional parameter. When using positional parameters in a command, you can omit the parameter label.




The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.




The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.




The JournalEmailAddress parameter specifies a journal recipient. Journal reports for the specified rule are sent to the journal recipient.




The Name parameter specifies the name of the journal rule. The name of the rule can be up to 64 characters.




The Recipient parameter specifies the SMTP address of a mailbox, contact, or distribution group to journal. If you specify a distribution group, all recipients in that distribution group are journaled. All messages sent to or received from a recipient are journaled.




The Scope parameter specifies the scope of e-mail messages to which the journal rule is applied. You can use the following values:

  • Global   Global rules process all e-mail messages that pass through a Hub Transport server. This includes e-mail messages that were already processed by the external and internal rules. The default value is Global.
  • Internal   Internal rules process e-mail messages sent to and received by recipients in the Microsoft Exchange Server 2010 organization.
  • External   External rules process e-mail messages sent to recipients or from senders outside the Exchange 2010 organization.




The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

The Set-JournalRule cmdlet modifies an existing journal rule used by the Journaling agent on Hub Transport servers.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Journaling" entry in the Messaging Policy and Compliance Permissions topic.

Error Description



Exceptions Description



This example modifies the journal e-mail address to which journal reports are sent by the existing journal rule Consolidated Messenger.

Set-JournalRule "Consolidated Messenger" -JournalEmailAddress "ArchiveMailbox@contoso.com"
The Identity parameter is a positional parameter. When using positional parameters in a command, you can omit the parameter label. For more information about parameters, see Parameters.

This example modifies the journal e-mail address for all journal rules. The Get-JournalRule cmdlet is used to retrieve all journal rules. The results are piped to the Set-JournalRule cmdlet to modify the journal recipient.

Get-JournalRule | Set-JournalRule -JournalEmailAddress "Archive Mailbox"
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft