Skip to main content

Remove Exchange Server From Active Directory Domain

Remove Exchange Server From Active Directory Domain

At times you may have to remove exchange server from Active Directory domain because the Server is dead and there is no possibility to recover it. In such situations, we can use Adsiedit.msc to remove the dead server entries from active directory domain. The procedure is same for Exchange 2007, 2010 and 2013

I came across a situation where the exchange 2010 environment was running smoothly, except there was a dead Exchange 2007 Server that was still showing in the settings.

So to list all the Exchange servers we have in the environment, open the Exchange Powershell and run Get-ExchangeServer:


As we can see, the dead server “Mail” is a standard edition server with version 8.3 (Exchange 2007 Sp3). While the other functioning servers are 14.3 (Exchange 2010 Sp3).

Before removing the dead Server, we need to remember the following:

  • Ideally we should remove the exchange server by uninstalling from Add/Remove Programs.
  • It should be our last method to remove the server, when we are 100% sure that the server is unrecoverable.
  • Send/Receive connectors or any other configuration may still have the server in the settings, you should remove them manually.
  • AdsiEdit is very sensitive thing, only make changes when you know what you are doing.
  • It is good practice to take System State backup before making changes in the Adsiedit.

If you confirm all the above points, you can proceed to the removal step, otherwise leave it and ask for help from some senior systems engineer.


To remove the dead server, open Adsiedit.msc and connect to Configuration:

ADSIEDIT Configuration

Then go to the following path:

Configuration, CN=Configuration, CN=Services, CN=Microsoft Exchange, CN=<OrganizationName>, CN=Administrative Groups, CN=Exchange Administrative Group (FYDIBOH…, CN=Servers

Remove Exchange Server From Active Directory

Select the dead server from right pane, right click and delete.

ADSIEDIT Configuration exchange server delete

Finally, go again to Exchange Powershell and run the Get-ExchangeServer command to confirm the server is deleted from the list.

Get-ExchangeServer after

You may also like to check the Technet article “Remove the last legacy exchange Server”.

0x800706BA RPC server unavailable

0x800706BA RPC Server Unavailable

0x800706BA RPC Server Unavailable

0x800706BA RPC server unavailable is an error that you may face in multiple applications. When the “Remote Procedure Call” connectivity between two devices fails, this error may appear.

To confirm if we have the RPC between two devices, we can run the following command:

Get-WmiObject Win32_ComputerSystem –ComputerName DestinationServer

The successful RPC connectivity result look like this:

RPC Successful

If the RPC connectivity fails, the result will be as follows:

0x800706BA RPC server unavailable


To troubleshoot the “0x800706BA RPC server unavailable” error, check the following:

  • First of all, make sure the remote/destination device is up and running.
  • Make sure the RPC service is running on remote/destination device.
  • Check if you have any firewall in between both devices and required ports are open.
  • Check If Windows Firewall is enable on either side, disable it and then try again.
  • Make sure the antivirus is not blocking any traffic.
  • Finally, Try to have connectivity by using the IP instead of the name to confirm it is not DNS issue.