Exchange Outlook Mobile App detection

I had an opportunity where I needed to discover everyone using the “new” Outlook Web App available from iTunes or Google Play.

In case you didn’t know, these applications show up as registered mobile devices, just like an ActiveSync device.  The differentiating factor is that their ClientType property is MOWA instead of the usual EAS designator.

Combine this with a -filter command, and recognizing that, from an identity parameter perspective, the parent of all mobile devices is the actual user (and therefore the parent of the parent of the device is the user), a few short lines will populate a variable with the unique mailboxes which have a MOWA-registered device:

Set-ADServerSettings -ViewEntireForest $True
$mowa=Get-MobileDevice -Filter { ClientType -eq 'MOWA' } -ResultSize Unlimited
$mowaDNs=$mowa | % { $_.Identity.Parent.Parent } | Select -Unique
$mowaMBs=$mowaDNs | Get-Mailbox -ResultSize Unlimited

That’s it! Now your $mowaMBs contains all users who have a registered device!

This entry was posted in Uncategorized. Bookmark the permalink.