• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 63
  • Last Modified:

Remove Exchange 2013 from out domain

We moved to Exchange 365 about 1 year ago and now I would like to reuse the old server so I need to remove Exchange 2013 from our domain.

I doubt it as easy as removing from the control panel

Could someone give me some pointers and this guide on the web - is this a good place to start?

Please follow below steps to uninstall Exchange server:
 1. Disable mailbox:
Get-User | Disable-Mailbox
Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed
Get-Mailbox -Monitoring | Disable-Mailbox

2. Remove restore mailbox for disconnected or soft-deleted mailbox:
Get-Mailbox | Get-MailboxStatistics | Where {$_.DisconnectReason -eq “Disabled” } | |foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState Disabled}
Get-Mailbox | Get-MailboxStatistics | where {$_.DisconnectReason -eq “SoftDeleted”} |foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

3. Remove database:
Get-MailboxDatabase | Remove-MailboxDatabase

4. Remove partner application configuration:
Get-PartnerApplication| Remove-PartnerApplication

5. Verify nothing is left:
 Get-Mailbox -Arbitration
 Get-Mailbox -Monitoring

At this point reboot the server and verify that IIS and other roles are working correctly.
 Finally, you can uninstall Exchange 2013 from Add/Remove Programs or PowerShell with below command:
Setup /Mode:Uninstall /iacceptexchangeserverlicenseterms
Ian Price
Ian Price
1 Solution
The sequence you written is seems OK
The major thing is to remove all mailboxes, after that exchange will not stop you from uninstalling it.

BTW. You may remove / reuse old exchange server without uninstalling and then remove it from adsiedit.msc (from ad configuration partition) but that path should be used when you are failing to uninstall exchange server
Ian PriceIT ManagerAuthor Commented:
Thank You
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now