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)}

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: