How to know how many mobile devices are connected to Exchange server

exchangewindows-server-2008

I wanted to know how many of mobile devices, such as iPhone or Android or iPad are connected to exchange server? Is there a script or something I can run?

Thanks
James

Best Answer

You've got a couple of options.

A short and sweet PowerShell one-liner for Exchange 2007 and 2010, like the one below, will show you devices w/ ActiveSync device partnerships, bounded by the date of last contact:

Get-Mailbox -ResultSize:Unlimited | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | Where {$_.LastSuccessSync -gt '11/1/2012'}

You also have the new Get-ActiveSyncDevice and Get-MobileDevice cmdlets in Exchange 2010 and 2013, respectively.

You don't mention your version of Exchange, however, and the command above will only work on E2K7 and newer. For Exchange 2003 you're pretty much stuck parsing IIS logs. There's some good discussion on the Exchange Team blog about using LogParser to get a list of devices.