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

by Bharat Suneja

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

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

{ 11 comments… read them below or add one }

sphere September 14, 2007 at 8:56 am

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.


mookie99 September 14, 2007 at 9:13 am

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


Bharat Suneja September 14, 2007 at 9:33 am


Thanks for pointing out the typo! Corrected.



Murray Wall September 17, 2007 at 2:50 pm

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


guy vann November 3, 2010 at 10:50 am

could you send me thescript


Bharat Suneja September 18, 2007 at 1:23 pm


For Exchange Server 2003, you have to parse IIS logs using a tool like Microsoft’s (free) Log Parser.

The Exchange team blog has several posts documenting this:
1. Exchange 2003 – Active Sync reporting
2. More on Exchange ActiveSync Reporting with Log Parser – COM object available


Murray Wall September 24, 2007 at 6:51 am

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…


Bharat Suneja September 24, 2007 at 7:16 am


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?


Murray Wall September 25, 2007 at 8:06 am

I have added it to my blog (just created!)


Philip Colmer June 20, 2008 at 7:19 am

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.


Bharat Suneja June 20, 2008 at 10:04 am


Just posted an updated snippet in
Exchange Server 2007: Listing Exchange ActiveSync users and device information
. It lists users with device and times of first sync, last successful sync, phone number, deviceID, etc.

It’s possible users may have had a device at some time in the past and the device partnership was never removed.


Leave a Comment

{ 2 trackbacks }

Previous post:

Next post: