Skip to main content
Get-ExchangeServer

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:

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.

Procedure:

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”.

Outlook Data File Cannot be Accessed

Outlook Data File Cannot be Accessed 0x8004010f

Outlook Data File Cannot be Accessed Error 0x8004010f

Sometimes you may face an error in outlook, “Outlook Data File Cannot be Accessed” while sending/receiving the emails. This error indicates that the Outlook cannot access the data file. Different versions of Outlook including Outlook 2007, 2010, 2013 and Outlook 2016 may face this issue. The error looks like this:

Outlook Data File Cannot be Accessed

Reasons:

There could be two main reasons for this error:

  1. The oultook pst files in the Outlook profile are pointing to the wrong location.
  2. The outlook profile has corrupted.

Solutions:

The solution are quite simple. You can try the following:

  1. Link the data files to the existing Profile:

First of all, if you moved the outlook files to another location, you can try to link them to your outlook profile.

Go to Control Panel and open Mail and select your Profile and click Properties. Here click Data Files. Now click “Open file location” and point to the location where you stored the data files. Set the newly pointed data files as Default and remove the previous entry. Now close the Account settings and open the outlook. This time outlook will be able to access the Outlook files.

2. Create Ne Outlook Profile:

In case your outlook files are pointing to the correct location and still you are facing this issue, it could be because of corrupt outlook profile. To fix this issue, you can try to create a new profile.

Go to Control Panel and open Mail. Click Show Profiles and then click Add, give the new profile a name and click OK. Fill out the Outlook information and complete the configuration. Once the profile is created, set it as Default Profile. Finally, open the outlook (it will open with the new profile) and you will have a fresh, error free outlook profile.

 

For further details about this error, you can check the Microsoft support center article.

Scanpst location

ScanPST Location in Outlook

ScanPST Location in Outlook

The ScanPST Location for each Outlook versions are as follows:

Outlook VersionScanPST.exe Location
Outlook 97/98C:\Program Files\Common Files\Windows Messaging\scanpst.exe
Outlook 2000C:\Program Files\Common Files\System\MAPI\<locale ID>\NT\scanpst.exe
Outlook 2002/XPC:\Program Files\Common Files\System\MAPI\<locale ID>\scanpst.exe
Outlook 2003 (32 Bit)C:\Program Files (x86)\Common Files\System\MSMAPI\<locale ID>\scanpst.exe
Outlook 2003 (64 Bit)C:\Program Files\Common Files\System\MSMAPI\<locale ID>\scanpst.exe
Outlook 2007 (32 Bit)C:\Program Files (x86)\Microsoft Office\Office12\scanpst.exe
Outlook 2007 (64 Bit)C:\Program Files\Microsoft Office\Office12\scanpst.exe
Outlook 2010 (32 Bit)C:\Program Files (x86)\Microsoft Office\Office14\scanpst.exe
Outlook 2010 (64 bit)C:\Program Files\Microsoft Office\Office14\scanpst.exe
Outlook 2013 (32 Bit)C:\Program Files (x86)\Microsoft Office\Office15\scanpst.exe
Outlook 2013 (64 Bit)C:\Program Files\Microsoft Office\Office15\scanpst.exe
Outlook 2016 (32 Bit)C:\Program Files (x86)\Microsoft Office\root\Office16\scanpst.exe
Outlook 2016 (64 Bit)C:\Program Files\Microsoft Office\root\Office16\scanpst.exe

 

This example shows ScanPST location in Outlook 2010, 32 bit version.
Scanpst location

After opening the Scanpst tool, click browse and open the the PST file and then click the Start button to start the repair process.