We help IT Professionals succeed at work.

Uninstall Exchange Server 2007


I want to completely uninstall Exchange Server 2007. I have removed user mailboxes, removed public folder database, removed user mailbox database, removed storage group, deleted offline address book and removed exchange administrative group, but when I want to uninstall the server from I get this message:

Exchange server "SERVER NAME" was not found. Please make sure you have typed it correctly.

The server name is correct.

How can I then uninstall the server?

Watch Question

Pete LongTechnical Consultant
Distinguished Expert 2019

is server-name the server you are performing the uninstall on, or a long retired server?

If its an old dead server then remove it from AD using ADSIEdit and perform the uninstall again :)

I only have one - if you have a second entry for this server delete it from here;


Server engineer
You will have to manually uninstall the exchange server since graceful uninstall is not working.

1. Stop and disable all the Exchange 2007 services

2. Use Registry Editor (Start->Run->Regedit) to remove these Exchange related registry keys:

HKLM\SYSTEM\CurrentControlSet\Services\MSExchange* (all the keys starting with “MSExchange”)
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Exchange
4. Remove the entire Web Server role (don’t forget to reinstall afterwards as it’s a prerequisite for Exchange 2007!)

5. Remove the Exchange 2007 server from Active Directory using ADSIEdit. Action-Connect To. And then in the Configuration Settings window, select the Configuration context and click OK. See image below.

6. In ADSIEdit, expand Configuration through to CN=Services.

7. Expand Services. Expand CN=Microsoft Exchange. Expand CN=Your_Domain. Expand CN=Administrative Groups.

8. Expand CN=Exchange Administrative Group (FYDIBOHF23SPDLT)

9. Expand CN=Servers

10. Delete the target server. It will be of the form CN=<Server_Name>.to your domain CN=Domain. If you are unable to find your server listed as described, you may need to use LDP.EXE to firstly locate it.

11. Use Windows Explorer to delete:

C:\Program Files\Microsoft\Exchange Server
12. Run the Windows Installer CleanUp Utility to remove all the Exchange related info from the installer database.

13. Remove the target server from any Exchange security groups.

the server name is the server I'm performing the uninstall on.
Daryl GawnSenior Infrastructure Engineer

are the exchange services running on that server?

yes, they are...
Mike LazarusAct! Evangelist - CRM Consultant


Maybe you can reinstall the server and run a   /Mode:RecoverServer switch, after the installation you can try to uninstall it the correct way.

This is for 2019, but steps on that should still be same:

If that fails, try these steps: