Export (0) Print
Expand All

Export-ActiveSyncLog

Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

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


Export-ActiveSyncLog -Filename <String> [-Confirm [<SwitchParameter>]] [-EndDate <DateTime>] [-Force <SwitchParameter>] [-OutputPath <String>] [-OutputPrefix <String>] [-StartDate <DateTime>] [-UseGMT <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

Parameter Required Type Description

Filename

Required

System.String

The Filename parameter specifies the name of the output file created.

Confirm

Optional

System.Management.Automation.SwitchParameter

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.

EndDate

Optional

System.DateTime

The EndDate parameter specifies the end date of the date range of the report.

Force

Optional

System.Management.Automation.SwitchParameter

The Force parameter suppresses the warning or confirmation messages that appear during specific configuration changes.

OutputPath

Optional

System.String

The OutputPath parameter specifies the name and location for the output file.

OutputPrefix

Optional

System.String

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

StartDate

Optional

System.DateTime

The StartDate parameter specifies the start date of the date range for the report.

UseGMT

Optional

System.Management.Automation.SwitchParameter

The UseGMT parameter specifies that Coordinated Universal Time (Greenwich Mean Time) is used for the time in the report output. By default, if this parameter isn't specified, local time is used.

WhatIf

Optional

System.Management.Automation.SwitchParameter

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 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.

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 "Exchange ActiveSync server settings" entry in the Client Access Permissions topic.

Error Description

 

 

Exceptions Description

 

 

This example exports the Exchange ActiveSync log for the date range 06/08/08 to 06/09/08. The times on the report are in Coordinated Universal Time (UTC), and the report is saved in c:\exreports\easreports.

Export-ActiveSyncLog -Filename: "c:\Windows\System32\LogFiles\W2SVC1\ex060809.log" -StartDate:"06/08/08" -EndDate:"06/09/08" -UseGMT:$true -OutputPath:"c:\exreports\easreports"

This example exports the Exchange ActiveSync log for the date range 09/20/08 to 10/20/08. All prompts are suppressed when running the report and a confirmation message is displayed. The times on the report are in UTC, and the report is saved in c:\exreports\easreports.

Export-ActiveSyncLog -Filename: "c:\Windows\System32\LogFiles\W2SVC1\ex102008.log" -StartDate:"09/20/08" -EndDate:"10/20/08" -UseGMT:$true -Force $true -Confirm $true -OutputPath:"c:\exreports\easreports"

This example exports the Exchange ActiveSync log for the date range 02/01/09 to 02/09/09. The times on the report are in UTC, and the report is saved in c:\exreports\easreports.

Export-ActiveSyncLog -Filename: "c:\Windows\System32\LogFiles\W2SVC1\ex020909.log" -StartDate:"02/01/09" -EndDate:"02/09/09" -UseGMT:$true -OutputPath:"c:\exreports\easreports"
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft