Export (0) Print
Expand All
Related Help Topics
Loading
No resources found.
Related Blog Articles
Loading
No resources found.
Expand Minimize
3 out of 6 rated this helpful - Rate this topic

Export-ActiveSyncLog

Exchange 2010
 

Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-11-16

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

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.

 

Parameter Required Type Description

Filename

Required

System.String

The Filename parameter specifies the name of the input file.

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.

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

This example exports the Exchange ActiveSync log for the date range 06/08/09 to 06/09/10. 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/09" -EndDate:"06/09/10" -UseGMT:$true -OutputPath:"c:\exreports\easreports"

This example exports the Exchange ActiveSync log for the date range 09/20/08 to 10/20/08 by reading all log files in the D:\logs directory. 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.

Dir D:\Logs\*.log | Export-ActiveSyncLog -Filename: "c:\Windows\System32\LogFiles\W2SVC1\ex102008.log" -StartDate:"09/20/08" -EndDate:"10/20/08" -UseGMT:$true -Force $true -Confirm -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"
 © 2010 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.