Complete uninstall of Exchange Server 2016 steps
This week is quite busy, is to write the tender bid, at the same time the company was *, resulting in an Exchange CAS server can no longer be used, need to build a new CAS server, can not use the CAS server operating system can not enter, regular uninstall can not be used, many people may know how to uninstall Exchange, but I think it is necessary to record, in case of future emergencies.
Generally speaking, after we have installed Exchange Server 2016, we can uninstall it through the normal uninstall program, but if we encounter the following situations, we need to uninstall and remove Exchange server in a privileged way:
The Exchange server has been permanently offline or we need to remove it. There is an error during the installation of the Exchange server, and it cannot be solved. The corresponding junk entry is left in the architecture. When the Exchange program is reinstalled and uninstalled, it is not completely uninstalled, leaving junk entries in the schema.
Let's take a look at what steps need to be taken:
Log in to AD and open the ADSI editor
Right-click the "ADSI" editor and click Link to
Select "configuration" to determine
Open "CN=Configuration,DC= your domain name, DC=com"-"Services"-"Microsoft Exchange"-"Administrative Groups"-"Servers" in turn, find the Exchange Server you need to delete, and delete it.
After you delete the Exchange server, you can reinstall the operating system and reinstall Exchange again.
What if we need to delete the entire Exchange system clean?
Similarly, open the ADSI editor, select "configuration", navigate to "CN=Configuration,DC= your domain name, DC=com"-"Services", and delete the "Microsoft Exchange" and "Microsoft Exchange Autodiscover" entries
Connect to the default naming context again via ADSI
Delete the following two entries
OU=Microsoft Exchange Security Group
CN=Microsoft Exchange System Objects
Use IIS Manager to delete Exchange front-end and back-end Web sites
Open AD users and computers
Delete the following users and user groups under "Users"
DiscoverySearch Mailbox {GUID}
Exchange Online-ApplicationAccount
FederatedEmail.GUID
Migration.GUID
SystemMailbox {GUID}
HealthMailboxGUID
As shown in the following figure
Delete the following key values from the Exchange registry
Delete key "ExchangeServer"
HKEY_LOCAL_MACHINE\ Software\ Micorosoft
Delete key "MSExchange"
HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services removes key "MSExchange*" and all of its following items
Finally, we delete the Exchange installation folder from the disk on the Exchange server. By default, it is under this path C:\ Program Files\ Microsoft\ Exchange Server
This deletes the entire Exchange system.