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:
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:
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.
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.