Exchange Server 2007: How to get a list of Exchange ActiveSync users

Getting a list of actual Exchange ActiveSync (EAS) users was not an easy task with Exchange Server 2003, and certainly not one that could be accomplished in a hurry.

Yes, it indeed is a one-liner shell command with Exchange Server 2007:

Get-CASMailbox | where {$_.HasActiveSyncDevicePartnership} | select Name

10/7/2008:
Here’s an updated version, which uses the -Filter parameter to filter recipients on the server-side:

Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq $true} | Select Name

Written by

Bharat Suneja

13 Comments

  1. sphere

    Thanks for the – as always- useful hint. Just a little correction: The closing parenthesis needs to be replaced with a brace in order for the command to work.

  2. mookie99

    Do you have info on how one could get a list of Exchange 2003 EAS users?

  3. Bharat Suneja

    Jan,

    Thanks for pointing out the typo! Corrected.

    Bharat

  4. Murray Wall

    I have a script that will perform this for 2003 if anyone is interested

    1. guy vann

      could you send me thescript

  5. Murray Wall

    The Script I have parses AD and looks for the active sync folder within the Mailbox that is created when a device syncs up. its a VBScript modified from Glen Scales, Tues Sept 26 2006. No need to have any IIS logs…

  6. Bharat Suneja

    Murray,

    Yes, that’s another way of getting a list of mailboxes with ActiveSync enabled and an existing device partnership.

    Can you post a link to that script, and also detail the permissions required on mailbox(es)/mailbox Stores to be able to access mailboxes?

  7. Philip Colmer

    This seems to be producing names for people who don’t actually have an activesync device partnership. I’m seeing names of people who don’t have any device, or who are using a BlackBerry.

    Very strange.

Leave a Comment

Your email address will not be published. Required fields are marked *