Can't remove Exchange 2019 CU12

Evgeny Shupik 191 Reputation points
2022-09-24T19:17:51.517+00:00

Hello everybody! Please help - need to uninstall Exchange 2019 server but receiving some errors during process:

244437-exchange-uninstall.jpg

This is fresh install 2 days ago - so I even didn't create any database, boxes - nothing. How to remove this Exchange correctly? Thank you.

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,393 questions
{count} votes

4 answers

Sort by: Most helpful
  1. BenOu-MSFT 586 Reputation points
    2022-09-26T08:28:31.507+00:00

    Hi@
    You can first find the hidden mailboxes and delete them then delete the database and try to uninstall Exchange On-premises 2019 again. Here are the detailed steps:

    1. Run “Get-MailboxDatabase” to see the MailboxDatabases you have.
    2. Use the following commands to check the mailboxes in the Databases separately:
      Get-Mailbox -Database “Database Name”
      Get-Mailbox -Database “Database Name” -Archive
      Get-Mailbox -Database “Database Name” -Arbitration
      Get-Mailbox -Database “Database Name” -PublicFolder
      Get-Mailbox -Database “Database Name” -Monitoring
      Get-Mailbox -Database “Database Name” -AuditLog
    3. If you use the above commands to find any mailbox, you can use command of” Get-Mailbox -Arbitration/Archive/PublicFolder/Monitoring/AuditLog | Remove-Mailbox -Arbitration/Archive/PublicFolder/Monitoring/AuditLog -RemoveLastArbitrationMailboxAllowed “to remove the mailbox.
    4. Use EAC to navigate to Servers -> Databases, highlight the database you wish to remove and then click on the trash icon to delete the Database.
    5. Try to uninstall Exchange On-Premises 2019 again.

    If this Answer is helpful, please click "Accept Answer" to upvote it. If you have extra questions about this answer, please click "Comment" and I will come to your aid.

    0 comments No comments

  2. Amit Singh 4,851 Reputation points
    2022-09-27T09:16:43.817+00:00

    There is a possibility that the database you’re trying to remove is an Archive Database for a mailbox residing on a different mailbox database.

    The following command helps you list mailboxes using a specific database as Archive Database:

    Get-Mailbox | where {$_.ArchiveDatabase -eq "<databaseName>"}  
    

    Check following links for more details - This mailbox database contains one or more mailboxes… and How to Remove a Database from Exchange 2010, 2013, 2016, and 2019?]1

    Also Microsoft mentioned in the KB 3093175 that this could be caused by an AuditLog, so check if such one exists.

    0 comments No comments

  3. Evgeny Shupik 191 Reputation points
    2022-09-27T09:23:14.367+00:00

    Hello! Please look at this:

    [PS] C:\Windows\system32>Get-MailboxDatabase

    Name Server Recovery ReplicationType
    ---- ------ -------- ---------------
    Mailbox Database 1277679589 MAIL False None

    [PS] C:\Windows\system32>Get-Mailbox -Database "Mailbox Database 1277679589"
    WARNING: Task module "CmdletHealthCountersModule.Task_IterateCompleted" fails with exception "The type initializer for
    'Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor' threw an exception.". This module is skipped. Task
    execution result should not be affected.
    WARNING: Task module "CmdletHealthCountersModule.Task_Release" fails with exception "The type initializer for
    'Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor' threw an exception.". This module is skipped. Task
    execution result should not be affected.
    [PS] C:\Windows\system32>

    What does it mean?

    0 comments No comments

  4. Evgeny Shupik 191 Reputation points
    2022-09-28T06:17:18.627+00:00

    I found a solution:

    C:\Windows\system32\lodctr.exe /R

    And then:

    iisreset /stop
    iisreset /start