How to Convert a Secondary Hierarchy Public Folder Mailbox to Primary Hierarchy in Exchange Admin Center (Exchange 2019)?

Doumbia 40 Reputation points
2025-10-18T02:18:03.0666667+00:00

I'm running Exchange Server 2019 on-premises with public folders split between one Primary Hierarchy mailbox (on a server to decommission) and multiple Secondary ones. Need to promote a Secondary to Primary without full recreation or heavy downtime, preserving the writable hierarchy and read-only replicas.

Tried PowerShell: Set-OrganizationConfig -RootPublicFolderMailbox $null, then reassigned and Update-PublicFolderMailbox -InvokeSynchronizer. EAC still shows Secondary, with user access glitches. Env: 2019 CU14, Win Server 2019, single DAG, 50GB folders.

Proven script or AD fix to convert Secondary to Primary with minimal outage?

Exchange | Exchange Server | Development
{count} votes

Answer accepted by question author
  1. Steven-N 15,160 Reputation points Microsoft External Staff Moderator
    2025-10-18T05:36:40.4966667+00:00

    Hi Doumbia

    Thank you for reaching out to Microsoft Q&A forum

    Based on your description, I understand that you are managing an on-premises Exchange Server 2019 environment with public folders distributed across a primary hierarchy mailbox and multiple secondary hierarchy mailboxes. You want to promote one of the healthy secondary mailboxes to primary to avoid recreating the entire structure, while minimizing downtime, but your attempts with PowerShell commands like Set-OrganizationConfig -RootPublicFolderMailbox $null followed by reassignment and Update-PublicFolderMailbox -InvokeSynchronizer have not updated the status in the Exchange Admin Center (EAC), resulting in persistent secondary designation and intermittent user access issues.

    From my perspective view, in order to minimize disruption in your Exchange 2019 setup.

    1. First back up public folders with New-MailboxExportRequest, then check the target secondary mailbox's health via Get-PublicFolderMailboxDiagnostics <TargetMailbox> -IncludeHierarchyInfo.
    2. Next step, you have to move content from the primary to the target using New-PublicFolderMoveRequest -Identity "\FolderPath" -TargetMailbox <TargetMailbox> .
    3. Then remember to clear the primary role with Set-OrganizationConfig -RootPublicFolderMailbox $null (or delete msExchDefaultPublicFolderMailbox in ADSI Edit), wait 5-10 minutes for AD replication, then reassign: Set-OrganizationConfig -RootPublicFolderMailbox <TargetMailboxGUID> (get GUID from Get-Mailbox <TargetMailbox> | Format-List ExchangeGuid).
    4. At the final step, you can force sync with Update-PublicFolderMailbox -Identity <TargetMailbox> -InvokeSynchronizer -SuppressStatus. Schedule during off-hours for any brief downtime.

    Verification:

    Run:

    Get-Mailbox -PublicFolder | Format-Table Name, IsRootPublicFolderMailbox, $true
    

    Then check EAC (Public Folders > Public Folder Mailboxes for "Primary Hierarchy"), and test Outlook access.

    This summary is based on my findings from the community and several relevant threads. However, it may not accurately reflect the behavior in question. To help you reach your goal more effectively, I recommend posting a thread on the Microsoft Tech Community forum. It’s a great platform for deeper technical discussions and connecting with individuals who have hands-on experience and expertise. They’re best positioned to provide guidance and valuable insights on this topic.   

    I'm hoping you'll get the help you need to fix the issue quickly. Please feel free to leave a comment below if you require any additional help. 

    Best regards


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    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.


0 additional answers

Sort by: Most helpful

Your answer

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