Find Exchange ActiveSync Devices via ActiveDirectory PowerShell

Scenario:  If you want to list the mobile devices attached to an AD user and want to do it within the AD toolset, run the following  get-ADObject command.

PowerShell Snippit:

$name = “*steve*”

#To view the Devices:

$AD_EAS = Get-AdObject -filter {ObjectClass -like ‘msExchActiveSyncDevice’} | Where-object {$_.DistinguishedName -like $($name)}

$AD_EAS_Container = Get-ADObject -filter { ObjectClass -like ‘msExchActiveSyncDevices’} | Where-Object {$_.DistinguishedName -like $($name)}

Leave a comment