Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Reporting on ActiveSync devices


The Exchange Management Shell provides several cmdlets that can be used for generating reports. We can obtain information about users and their devices and we can also generate reports based on end-user activity and server usage. In this recipe, we'll take a look at how we can use these cmdlets to generate multiple ActiveSync reports from the Exchange Management Shell.

How to do it...

  1. To generate a report for an individual user's device synchronization status, use the following command:

    Get-ActiveSyncDeviceStatistics -Mailbox dsmith
  2. This cmdlet will output a lot of information, some of which may not be very interesting. You can limit the data returned by selecting only the properties that provide useful information:

    Get-ActiveSyncDeviceStatistics -Mailbox dsmith | 
      select LastSuccessSync,Status,DevicePhoneNumber,DeviceType

    The output for the previous command will look similar to the following:

    LastSuccessSync         Status DevicePhoneNumber DeviceType
    ------...