Exchange 2010 : Find Users with iOS 4.0 Devices (User Agent 801.29)

Exchange 2010 : Find Users with iOS 4.0 Devices (User Agent 801.29)

The following Exchange Shell Script will identify all users that have an iOS 4.0 device – these should be upgraded to 4.01+ ASAP. Save the code below into a .ps1 file and execute.

 

{code lang:css showtitle:false lines:false hidden:false}$ukCASUsers = get-casmailbox -Filter {HasActiveSyncDevicePartnership -eq $true} | where {($_.ServerName -like “*”)}

Foreach ($casMbx in $UKCASUsers )
{
get-activesyncdevicestatistics -mailbox $casMbx.legacyexchangedn | Where {($_.DeviceuserAgent -like “*801.29*”)} | select

Identity,DeviceType,DeviceID,DeviceUserAgent,LastSuccessSync
}{/code}

Alternatively you can block specific user agents as per: http://blogs.technet.com/b/exchange/archive/2008/09/05/3406212.aspx

More information available here: http://support.apple.com/kb/ts3398