Get-Scripting




 

 


In my daily routines, I found myself with a need to uninstall Exchange 2010 from a server. Exchange installation failed to install properly forcing me to uninstall it. As it turns the uninstall is a long winding process which is neither documented nor supported by Microsoft. The steps below are steps which i followed to get Exchange Server uninstalled manually. 


The steps below were performed on the one and only Exchange Server in my test lab.


Remove Binaries, Registry from Exchange Server:
1. Go to Exchange 2010 Server
2. Make Sure Exchange management Console and Exchange Management Shell are Closed.
3. Go to Services.msc
4. Right Click on “Microsoft Exchange Active Directory Topology Service”.
5. Go to Properties.
6. Stop the Service. Make the Startup type “Disabled”
7. Click ok.
8. Stop and Disable All the Exchange Related Services below in the same method.

Microsoft Exchange Address Book
Microsoft Exchange Anti-spam Update
Microsoft Exchange EdgeSync
Microsoft Exchange File Distribution
Microsoft Exchange Forms-Based Authentication
Microsoft Exchange IMAP4
Microsoft Exchange Information Store
Microsoft Exchange Mail Submission Service
Microsoft Exchange Mailbox Assistants
Microsoft Exchange Mailbox Replication Service
Microsoft Exchange Monitoring
Microsoft Exchange POP3
Microsoft Exchange Protected Service Host
Microsoft Exchange Replication Service
Microsoft Exchange RPC Client Access
Microsoft Exchange Search Indexer
Microsoft Exchange Server Extension for Windows Server Backup
Microsoft Exchange Service Host
Microsoft Exchange Speech Engine
Microsoft Exchange System Attendant
Microsoft Exchange Throttling
Microsoft Exchange Transport
Microsoft Exchange Transport Log Search
Microsoft Exchange Unified Messaging
Microsoft Search (Exchange Server)

Refer to:
Overview of Services Installed by Exchange Setup
http://technet.microsoft.com/en-us/library/ee423542.aspx
9. Restart the Exchange Server.
10. Go to Registry Editor.
11. Navigate to the following registry entries and delete them

COMPUTER ->HKEY_LOCAL_MACHINE ->SOFTWARE -> MICROSOFT –> EXCHANGE
COMPUTER ->HKEY_LOCAL_MACHINE ->SOFTWARE -> MICROSOFT –> EXCHANGESERVER
COMPUTER ->HKEY_LOCAL_MACHINE ->SYSTEM ->CURRENTCONTROLSET ->SERVICES ->MSEXCHANGE* (Everything Starts with MSExchange)
COMPUTER -> HKEY_CURRRENT_USER -> SOFTWARE -> MICROSOFT –> EXCHANGESERVER

11. Open Windows Explorer.
12. Navigate to %Program Files%Microsoft
13. Rename “Exchange Server” Folder as “Old Exchange Server”
14. Restart the Exchange Server.
15. Download the Windows Installer Clean up utility from the below link
http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe

16.Install it in the Exchange Server and Open it.
17. Remove the Microsoft Exchange Related Products. Ex.

Microsoft Exchange 2007 Enterprise Anti-Spam Signature
Microsoft Exchange 2007 Enterprise Block List Update
Microsoft Exchange 2007 Standard Anti Spam-filter Update
Microsoft Exchange Client Language Pack
Microsoft Exchange Server
Microsoft Full Text Indexing Engine for Exchange
Microsoft Exchange Full text indexing Services

18. Restart the Exchange Server.

Removing Active Directory Objects:
1. Go to Primary Domain Controller
2. Open ADSIEDIT
3. Right Click on ADSIEdit and Click Connect to
4. Connect to “Default Naming Context”
5. Navigate to the following objects and Delete them.

DC=Domain,DC=Com -> OU=Microsoft Exchange Security Groups
DC=Domain,DC=Com -> CN=Microsoft Exchange System Objects

6. Right Click on ADSIEdit and Click Connect to
7. Connect to “Configuration”
8. Navigate to the following objects and Delete them.

CN=Configuration,DC=Domain,DC=Com -> CN=Services -> CN=Microsoft Exchange
CN=Configuration,DC=Domain,DC=Com -> CN=Services -> CN=Microsoft Exchange Autodiscover

9. Force the Active directory Replication.
10. Exchange 2010 Manual Uninstallation is Completed

Who has been here?