One Step Further: Configuring Message Tracking

In this exercise, we will examine the use of Windows PowerShell to configure message tracking on an Exchange 2007 server.

  1. Open Notepad or another Windows PowerShell script editor.

  2. Declare a variable called $dteMaxAge and use the timespan accelerator to convert a string type into a timespan data type. Set the timespan to be equal to 30 days, 0 hours, 0 minutes, and 0 seconds. The line of code that does this is shown here:

    $dteMaxAge = [timespan]"30.00:00:00"
  3. On the next line, create a variable called $intSize and use it to hold the value 50MB. The Set-MailboxServer cmdlet expects a value with both the number and suffix to indicate whether the number is megabytes or kilobytes or some other size of number. ...

Get Microsoft® Windows PowerShell™ Step By Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.