Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to uninstall Exchange 2007 manually?

Posted on 2015-01-14
Medium Priority
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
  • 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 12

Accepted Solution

Tej Pratap Shukla ~Dexter earned 2000 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?
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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? http://support.microsoft.com/kb/927464

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: http://windowsitpro.com/exchange-server/how-uninstall-stubborn-exchange-server
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 12

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
In this post, we will learn to set up the Group Naming policy and will see how it is going to impact the Display Name and the Email addresses of the Group.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

564 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