I have a "zombie" AS device that shows up in the management console and in Get-ActiveSyncDeviceStatistics for a user, but it doesn't show up in Get-ActiveSyncDevice or Get-MobileDevice for the user. The AD object for the device doesn't appear to exist.
The user apparently upgraded, and I'm told the old device was wiped and deleted, but it still shows up in the statistics reports.
The last synch information doesn't appear to be stored in AD (there's no properties for that data attached to the AD objects), so I'm guessing the orphan device reference is stuck where ever that last sync data is stored. I need to find out where that is and pry it out of there.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "