How to uninstall Exchange 2007 manually?

Posted on 2015-01-14
Last Modified: 2015-01-19
This is using MS Exchange 2007 server  on MS Windows 2008 R2 server. This is also using MS W2K8-based ad domain. This is the only exchange server and all our mailboxes have been migrated to office 365. Now, we wanted to uninstall the exchange server in order to decommission the server. However, attempt to uninstall via the add or remove failed. Now, we are resorting to uninstall it manually. How should we do it?

Thanks in advance.
Question by:MichaelBalack
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
LVL 19

Expert Comment

ID: 40550504
By default, you just click on add or remove, it will work. For this case, what error you did encountered.?
You can uninstall the Exchange using ADSIEIDT, but it quite dangerous.

Have shutdown the Exchange 2007 server and everything is working as expected?

Below link is how to remove Exchange 2007 using ADSIEDIT.
LVL 11

Accepted Solution

Tej Pratap Shukla ~Dexter earned 500 total points
ID: 40550529
Microsoft does not support any manual method to remove the Exchange 2007. If you take this path, Microsoft will likely not assist you should it go wrong.

At first locate Windows Installer CleanUp Utility. If you don’t have, Perform a search on the the Internet for MSICUU2.exe. Take care to locate the right file it’s a zipped exe with a size on disk of 352KB.

After performing the above mentioned steps, Go through these steps: -

1. At first Run setup /m:uninstall
2. Stop and disable all the Exchange 2007 services and Open registry editor( Window + R, Type rgedit in the Run Prompt) to remove these exchanges related registry keys:
HKLM\SYSTEM\CurrentControlSet\Services\MSExchange* (all the keys starting with “MS Exchange”)
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Exchange
3. Remove the whole Web Server and 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
4. In ADSIEdit, expand Configuration through to CN=Services.
5. Expand Services. Expand CN=Microsoft Exchange. Expand CN=Your_Domain. Expand CN=Administrative Groups.
6. Expand CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
7. Expand CN=Servers
8. 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.
9. Use Windows Explorer to delete:
C:\Program Files\Microsoft\Exchange Server
10. Run the Windows Installer CleanUp Utility to remove all the Exchange related info from the installer database and Remove the target server from any Exchange security groups.

Hope this will work for you..


Author Comment

ID: 40550557
Hi Dexter,

I made a mistake. It is Exch2k10 instead of Exch2K7. Can I use the same way as stated by you?
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

LVL 24

Expert Comment

ID: 40550560
Before you decide to go down the manual uninstall route, have you tried the steps in this Microsoft article?

As mentioned above, a manual uninstall of Exchange is not recommended as this is unsupported by Microsoft. Only do a manual uninstall once you've exhausted all avenues.

I usually follow this method for when I am forced to do a manual uninstall and it has always worked well for me:
LVL 24

Expert Comment

ID: 40550565
Ignore the first link in my above reply if it's an Exchange 2010 server. The second link still applies to Exchange 2010 though.
LVL 11

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 40550566
hi Michael..

yes you can.. But dont forget to remove all the Exchange related services.

Before proceeding, Close all Exchange Related services..

Good Luck


Author Comment

ID: 40550578
Thanks Dexter, I will try it and update you about the results.

Expert Comment

by:Monika Bharti
ID: 40550586
Note: Manually removing Exchange 2007 is not supported by Microsoft Official guidance for removing Exchange 2007 can be found in this TechNet article.

But still if you want to go for manual process then follow these steps:( the steps are also mentioned by another expert Dexter)
1.      Run setup /m:uninstall
2.      Stop and disable all the Exchange 2007 services
3.      Use Registry Editor (Start->Run->Regedit) to remove these Exchange related registry keys:
•      HKLM\SOFTWARE\Microsoft\Exchange
•      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 E2K7!)
5.      Remove the Exchange 2007 server from Active Directory. I ended up deleting the entire “Microsoft Exchange” branch from ADSIEdit (Configuration Container > Services > Microsoft Exchange) as my Org only counts one server.
6.      Use Windows Explorer to delete:
•      C:\Program Files\Microsoft\Exchange Server
•      C:\ExchangeSetupLogs
7.      Use Windows Installer CleanUp Utility to remove all the exchange related info from the installer database.
8.      Remove the security groups created by Exchange setup from AD

Author Closing Comment

ID: 40559108

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question