Managing Exchange Server 2007 journaling rules through the Exchange Management Console is simple. But you also have the option of using the Exchange Management Shell's New-JournalRule syntax to create journaling rules from the command line.
Like most Exchange Management Shell commands, there are a number of parameters that can be used in conjunction with the command. Only two of these parameters are required though; the rest are optional.
At a minimum, Exchange Server 2007 requires you to specify a name for the journaling rule you create and the email address to which journal reports will be sent.
The syntax for creating a basic rule using the minimal set of parameters is:
New-JournalRule –Name <the name of the rule> -JournalEmailAddress <mailbox to which reports should be sent>
In the above syntax, the Name parameter is used to specify the name of the Exchange 2007 journaling rule and the JournalEmailAddress parameter is used to specify the email address that reports should be sent to. For example, if you wanted to create a rule named Contoso, and wanted to send the reports to Brien@contoso.com, the command would look like this:
New-JournalRule –Name "Contoso" –JournalEmailAddress Brien@contoso.com
The command will only work if the email address specified exists within the Exchange Server organization. You cannot specify an external address or a mailbox that you haven't created yet.
Additionally, it doesn't really do much by itself. There are three other parameters that you can use to create a rule that is more functional.
Below is a list of the optional parameters and their functions:
- -Recipient: The recipient SMTP address to be journaled.
- -Scope: The scope of the rule that you are creating (Internal, External, or Global).
- -Enabled: Whether or not the rule is enabled. This parameter must be specified as ether $True or $False.
Below is an example that illustrates how these additional parameters can be used in conjunction with the first command that I outlined in this section of the tutorial:
New-JournalRule –Name "Contoso" –JournalEmailAddress "Brien@contoso.com" –Recipient Finance@contoso.com –Scope Global –Enabled $True
EXCHANGE SERVER 2007 JOURNALING TUTORIAL
Part 1: An overview of Exchange 2007 journaling rule scopes
Part 2: Compliance considerations for Exchange 2007 journal mailboxes
Part 3: How to enable the Exchange Server 2007 journaling agent
Part 4: How to create an Exchange 2007 journaling rule
Part 5: How to modify, disable or delete an Exchange 2007 journaling rule
Part 6: How to create journaling rules with Exchange Management Shell
|ABOUT THE AUTHOR:|
| Brien M. Posey, MCSE
Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Exchange Server, and has previously received Microsoft's MVP award for Windows Server and Internet Information Server (IIS). Brien has served as CIO for a nationwide chain of hospitals and was once responsible for the Department of Information Management at Fort Knox. As a freelance technical writer, Brien has written for Microsoft, TechTarget, CNET, ZDNet, MSD2D, Relevant Technologies and other technology companies. You can visit Brien's personal Web site at http://www.brienposey.com.