disable database index exchange 2019

Ilya Bokov 165 Reputation points
2023-07-04T04:07:34.7+00:00

hi! how to disable database indexing before migration, on Exchange 2019 ??? function is not supported...

User's image

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Exchange | Exchange Server | Other
Exchange | Exchange Server | Other
A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Limitless Technology 45,051 Reputation points
    2023-07-04T14:10:54.35+00:00

    Hello Ilya,

    Thank you for your question and for reaching out with your question today.

    In Exchange Server 2019, the ability to disable database indexing before migration is not directly supported through a built-in function. However, you can achieve a similar outcome by following these steps:

    1. Stop the Microsoft Exchange Search and Microsoft Exchange Search Host Controller services on the Exchange server that hosts the mailbox database you want to migrate.
    2. Open the Exchange Management Shell on the Exchange server.
    3. Disable automatic database provisioning temporarily by running the following command:
    
    Set-MailboxDatabase <DatabaseName> -IndexEnabled $False
    
    

    Replace <DatabaseName> with the name of the mailbox database you want to disable indexing for.

    1. Verify that indexing is disabled by running the following command:
    
    Get-MailboxDatabase <DatabaseName> | fl Name,IndexEnabled
    
    

    Ensure that the output shows IndexEnabled as False for the specified mailbox database.

    1. Proceed with your migration process. Once the migration is completed, you can re-enable indexing by following the next steps.
    2. Start the Microsoft Exchange Search and Microsoft Exchange Search Host Controller services on the Exchange server.
    3. Enable indexing for the mailbox database again by running the following command:
    
    Set-MailboxDatabase <DatabaseName> -IndexEnabled $True
    
    

    Replace <DatabaseName> with the name of the mailbox database.

    1. Verify that indexing is enabled by running the following command:
    
    Get-MailboxDatabase <DatabaseName> | fl Name,IndexEnabled
    
    

    Ensure that the output shows IndexEnabled as True for the specified mailbox database.

    By temporarily disabling indexing and re-enabling it after the migration, you can effectively prevent the mailbox database from being indexed during the migration process. However, keep in mind that this approach should be tested thoroughly in a non-production environment before applying it to a live Exchange Server deployment.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    If the reply was helpful, please don’t forget to upvote or accept as answer.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Kai Yao 37,776 Reputation points Moderator
    2023-07-05T01:59:01.7733333+00:00

    Hi @Ilya Bokov

    In Exchange 2019 the structure of index has changed: mailbox now hosts its own index inside it.

    Thus there is no method to disable index directly on database level.


    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.


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.