Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-11

The Export-ActiveSyncLog cmdlet parses the Internet Information Services (IIS) logs and returns information about Microsoft Exchange ActiveSync usage, either on the screen or in an output file.

Syntax

Export-ActiveSyncLog -Filename <FileInfo> [-EndDate <DateTime>] [-OutputPath <DirectoryInfo>] [-OutputPrefix <String>] [-StartDate <DateTime>] [-UseGMT <SwitchParameter>]

Parameters

Parameter Required Type Description

Filename

Required

System.IO.FileInfo

This parameter specifies the Universal Naming Convention (UNC) path of the IIS logs.

EndDate

Optional

System.DateTime

This parameter specifies the end date of the date range of the report.

OutputPath

Optional

System.IO.DirectoryInfo

This parameter specifies the name and location for the output file.

OutputPrefix

Optional

System.String

This parameter specifies a prefix to append to the name of the output file.

StartDate

Optional

System.DateTime

This parameter specifies the start date of the date range for the report.

UseGMT

Optional

System.Management.Automation.SwitchParameter

This parameter specifies that Coordinated Universal Time (Greenwich Mean Time) will be used for the time in the report output. By default, if this parameter is not specified, local time will be used.

Detailed Description

The Export-ActiveSyncLog cmdlet parses the IIS log files and returns information about Exchange ActiveSync usage. This cmdlet can export the output to a file or display it in the Exchange Management Shell.

To run the Export-ActiveSyncLog cmdlet, the account you use must be delegated the following:

  • Exchange Recipient Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

The following code example exports the Exchange ActiveSync log for the date range 06/08/06 to 06/09/06. The times on the report will be in Coordinated Universal Time (UTC) and the report will be saved in c:\Computer\Reports.

Copy Code
Export-ActiveSyncLog -FileName: "c:\Windows\System32\LogFiles\W2SVC1\ex060614.log" -StartDate:"06/08/06" -EndDate:"06/09/06" -UseGMT:$true -OutputPath:"c:\computer\reports"