Having recently started working with a new client and sorting out some Exchange 2010 problems, I wanted to identify what sort of mobile devices they had and more specifically what version of iOS any of their iPhones/iPads were running due to the issues that iOS 6.1 caused (see link iOS 6.1: Excess Exchange activity after accepting an exception to recurring calendar event)
To do this i used the command:
Get-ActiveSyncDevice | select devicetype, deviceos, deviceuseragent
To narrow the search down further to see only the devices running iOS 6.1 i used the following command:
Get-ActiveSyncDevice | where {$_.deviceos -match “iOS 6.1 “} | select devicetype, deviceos, deviceuseragent
Then finally to determine who owns the iOS 6.1 devices i used the following command:
Get-ActiveSyncDevice | where {$_.deviceos -match “iOS 6.1 10B14*”} | select userdisplayname,deviceos
A list of properties that can be obtained from the Get-ActiveSyncDevice PowerShell command can be found below:
RunspaceId
FriendlyName
DeviceId
DeviceImei
DeviceMobileOperator
DeviceOS
DeviceOSLanguage
DeviceTelephoneNumber
DeviceType
DeviceUserAgent
DeviceModel
FirstSyncTime
UserDisplayName
DeviceAccessState
DeviceAccessStateReason
DeviceAccessControlRule
DeviceActiveSyncVersion
AdminDisplayName
ExchangeVersion
Name
DistinguishedName
Identity
Guid
ObjectCategory
ObjectClass
WhenChanged
WhenCreated
WhenChangedUTC
WhenCreatedUTC
OrganizationId
OriginatingServer
IsValid
Related Posts:
1. PowerShell: Get-ADUser to retrieve logon scripts and home directories – Part 1
2. PowerShell: Get-ADUser to retrieve logon scripts and home directories – Part 2
3. How to install Exchange 2010 (SP3) on Windows Server 2012






























































