Author Posts

January 1, 2012 at 12:00 am

by morpheus83uk at 2012-08-22 01:52:52

Hello,

I am running the following command:

Get-ActiveSyncDevice -Mailbox

and it seems to work fine but does not pull out the correct information which is in OWA.... Its coming up with the last wiped phone opposed to the actual device which is being used or all devices which have been used and are being displayed in OWA.

I get the following information back:

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 :

After this I get the following error:

WARNING: An unexpected error has occurred and a Watson dump is being generated: The type
initializer for 'Microsoft.Exchange.AirSync.Command' threw an exception.
Get-ActiveSyncDevice : The type initializer for 'Microsoft.Exchange.AirSync.Command' threw an excep
tion.
At line:1 char:21
+ Get-ActiveSyncDevice < <<< -Mailbox + CategoryInfo : NotSpecified: (:) [Get-ActiveSyncDevice], TypeInitializationExceptio
n
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Exchange.Management.Tas
ks.GetActiveSyncDevice

Does anyone know why I am not getting the correct information and the errors above?

Many Thanks

James

by MikePfeiffer at 2012-08-23 16:06:40

Are you running the latest SP and RU for Exchange?

by morpheus83uk at 2012-08-24 02:15:05

Hello,

Were running Update 5 if thats any use?

Many Thanks

James

by MikePfeiffer at 2012-08-24 07:11:20

Can you update to the latest SP and RU? Where are you running the cmdlet from? Can you try running it against another server (if you have one) to see if it may be an issue with an individual server?

by morpheus83uk at 2012-08-28 04:40:03

Unfortunately not as I am not in charge of this...

I am running the cmdlet from my machine and not the server and we only have 1 server 🙁

Is there anything which can be done to fix this as is?

Many Thanks

James

by mjolinor at 2012-08-30 20:03:17

Are you manually loading the management snapin into a generic PS session?

by morpheus83uk at 2012-09-11 08:04:40

I am yes.