User with Exchange Online Archive has msExchArchiveStatus deleted by AD Connect

Ole Erik Skare 1 Reputation point
2020-09-17T18:42:04.357+00:00

Hybrid setup. User has Archive State "HostedPending" in Exchange 2013 on prem.
I can change the msExchArchiveStatus in local AD with ADSI Edit, but AD Connect will delete the attribute value

25559-e00a2b29-b09d-4aac-9ba9-fb480433bfc7.png

PS> Get-Mailbox user@keyman .com |fl Name, Archive*
Name : Username
ArchiveDatabase : EURPR08DG125-db124
ArchiveDatabaseGuid : bb2430a9-7493-4a5d-ad11-6369eec09041
ArchiveGuid : 347b063f-e279-48cb-a648-86351c5bbb75
ArchiveName : {Online Archive - Username}
ArchiveQuota : 100 GB (107,374,182,400 bytes)
ArchiveWarningQuota : 90 GB (96,636,764,160 bytes)
ArchiveDomain :
ArchiveStatus : None
ArchiveState : Local
ArchiveRelease : E15

A newly migrated cloud user got their Archive State set to "HostedProvisioned" after enabling the archive. This problem seems to be isolated to a number of previously migrated users.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,484 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,598 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,367 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,661 Reputation points
    2020-09-18T09:02:59.397+00:00

    Hi @Ole Erik Skare , changing the value in ADSIEdit only will not update the real status of the mailbox archive status.

    Please make sure you have followed all steps right list in this official document: Create a cloud-based archive for an on-premises primary mailbox in an Exchange hybrid deployment

    Or you could use the command below to create a remote archive for the existing on-premises user

    Enable-Mailbox "" -RemoteArchive -ArchiveDomain "domain.mail.contoso.com"   
    

    Detailed information and usage about the cmd Enable-Mailbox

    After you finish the steps above successfully, (Optional) run directory synchronization

    Start-ADSyncSyncCycle -PolicyType Delta  
    

    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Andy David - MVP 147.6K Reputation points MVP
    2020-09-18T16:56:01.633+00:00

    If they don't match, then you need set the on-prem to match the cloud one ( Which I assume the user can access yes?)

    Follow the steps here:
    https://support.microsoft.com/en-us/help/4053483/failed-to-sync-the-archiveguid-or-enable-the-new-cloud-archive

    Set-RemoteMailbox John -ArchiveGUID CloudArchiveGuid

    the let AADConnect do its thing and sync


  3. Muhammad Bilal 71 Reputation points
    2020-09-18T22:36:30.037+00:00

    Hi,

    can you also verify that the your Directory Sync Client version is upto-date as well on your directory sync server?

    Cheers.


  4. Andy David - MVP 147.6K Reputation points MVP
    2020-10-01T20:59:39.37+00:00

    Ok, so it matches, but then it gets deleted?

    Can you run a full AADConnect sync? ( Note that this may take a few hours)
    One thought is that something isnt getting picked up correctly in the delta syncs

    Start-ADSyncSyncCycle -PolicyType Initial
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.