Exchange 2007/2010 Active Sync 0x85010004 or 85010014

Are you using the administrator account to test with activesync? You shouldn’t be!

If you are getting these messages in Event Log: User “domainnameadministrator” cannot synchronize their mobile phone with their mailbox because  Exchange ActiveSync has been disabled for this user.

And on your Windows Mobile phone have error code 0x85010004

It’s probably because you’re trying to use the administrator account to test with! This is not supported under Exchange 2007/2010 as the administrator does not inherit permissions in AD which makes it hard to give it activesync rights. Use a user’s account instead!

If this is not the case, then try one of two things (I found this normally happens when migrating from 2003 -> 2007/2010 – never seen it with a fresh install)

  1. Remove and recreate ActiveSync Directory (use Exchange Powershell)
    Remove-ActiveSyncVirtualDirectory -Identity “Microsoft-Server-ActiveSync (Default Web Site)”New-ActiveSyncVirtualDirectory -Server “xxx” -WebSiteName “Default Web Site” -ExternalURL “http://www.xxx.com/Microsoft-Server-ActiveSync

    or for a single server deployment
    New-ActiveSyncVirtualDirectory -WebSiteName “Default Web Site” -ExternalURL “http://www.xxx.com/Microsoft-Server-ActiveSync

  2. Use the powershell to give the user ActiveSync rights
    Set-CASMailbox -Identity <username> -ActiveSyncEnabled $true

    Also, more specifically for error 85010014
    Make sure you check that the user does Inherit permissions from the parent. Load up ADU&C – Make Sure View -> Advanced Options is ticked – Find User – Properties – Security – Advanced – Tick Allow Inheritable Permissions from the Parent… Ok all the way back out.

Other than that, make sure you check the obvious. Are you using SSL on both the Exchange and device side, or are you turning it off? It must match up.

Exchange 2007 and 2010 – Total emails/messages sent and received

I had a request to find out the number of emails sent out of an Exchange server as they wanted it for auditing purposes. Message tracking center is cumbersome to use for this. Instead, the performance monitor was fairly good (but had limitations).

To get to Performance Monitor for Exchange (you can use the standard one too if you want) . Load up Exchange Management Console – Toolbox – Performance Monitor.

Right click on graph and choose Add Counters. Choose MsExchangeTransport SMTPReceieve, highlight _total and click Add. Do the same for MsExchangeTransport SmtpSend.

Once added, scroll through the counter list on the bottom and highlight either Messages Sent Total or Messages Received Total. Look at the number in Last. This is the number of emails sent or received.

Your next question is, “emails sent or received since when?”. The answer to this is: Since the server was last restarted. To get when it was last restarted just use the command prompt and type: “net statistics server” or “net statistics workstation”. It will give you the time and date these two services were last restarted which will coincide with when the server was restarted (as these two services cannot be restarted without restarting the server).

Hope this helps!