Posts Tagged ‘adsiedit’

Hi Folks,

sometimes you forget to delete the Exchange 2010 CAS Array Object with “Remove-ClientAccessArray” within the Exchange 2010 Shell while migrating to Exchange 2013.

After Deinstallation of Exchange 2010 the “Remove-ClientAccessArray” isn’t available in the Exchange 2013 Shell.

To remove the CAS Array Object open ADSI-Edit and go to configuration

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
CN=Microsoft Exchange
CN=EXCHANGE_ORG
CN=Administrative Groups
CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
CN=Array
DELETE CAS Array Entry and wait for AD Replication

cas-array

Cheers, Chris

The need to remove an Exchange 2013 server using ADSIEdit could have several reasons. The method using ADSIEdit to remove an Exchange server should only be used carefully.

The most common reasons are listed below:

  • The deinstallation didn’t finish properly and left attributes or entries in Active Directory
  • The Exchange server is permanent offline and Exchange should be removed
  • An Exchange installation didn’t finish properly and the attributes and entries should be removed

To remove the server open ADSI-Edit and go to configuration

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
->; DELETE
CN=Microsoft Exchange
CN=Microsoft Exchange Autodiscover

CN=Default naming context,DC=DOMAIN,DC=LOCAL
->; DELETE
CN=Microsoft Exchange Security Groups
CN=Microsoft Exchange Security Objects

Additional steps:

Hard Disk:
On the server’s hard disk you’ve to DELETE the Exchange Server installation folder.
Usually it’s C:\Program Files\Microsoft\Exchange Server

IIS:
DELETE the Exchange Back End and Front End websites with the IIS-Manager

AD Users and Computers:
DELETE the following users in the “Users” container:

DiscoverySearch Mailbox{GUID}
Exchange Online-ApplicationAccount
FederatedEmail.GUID
Migration.GUID
*SystemMailbox{GUID}
*HealthMailboxGUID

Registry:
DELETE the key “ExchangeServer” under:
HKLM\Software\Microsoft

DELETE the keys “MSExchange*” under:
HKLM\CurrentControlSet\Services

Cheers,

Chris

Today I had to remove an outdated alterante FileShareWitness entry from a customers’ DAG.

Within the Exchange Management Console it’s not possible to remove but only to replace the alternate FSW – the alternate FSW must not be empty.

The solution for this problem is using ADSIEdit to remove the alternate FSW entry:

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
CN=Microsoft Exchange
CN=EXCHANGE_ORG
CN=Administrative Groups
CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
CN=Database Availability Groups
CN=YOUR-DAG-NAME -> Right click properties

Klick “Modify” and than hit “Delete” for the follwoing attributes:

msExchAlternateFileShareWitness
msExchAlternateFileShareWitnessDirectory

Cheers,

Chris

Hi,

to locate the server responsible for a FSMO role open ADSI-Edit. The responsible attribute is in every case:

fSMORoleOwner

PDC-Emulator role
Naming context: DefaultNamingContext
Path: DC=DOMAIN,DC=LOCAL
(Right-click – properties -> fSMORoleOwner)

RID Master role
Naming context: DefaultNamingContext
DC=DOMAIN,DC=LOCAL,CN=System,CN=Rid Manager$
(Right-click – properties)

Schema Master role
Naming context: Schema
DC=DOMAIN,DC=LOCAL
(Right-click – properties -> fSMORoleOwner)

Infrastructure Master role
Naming context: DefaultNamingContext
DC=DOMAIN,DC=LOCAL,CN=Infrastructure
(Right-click – properties -> fSMORoleOwner)

Domain Naming Master role
Naming context: Configuration
CN=Configuration,DC=DOMAIN,DC=LOCAL,CN=Partitions
(Right-click – properties -> fSMORoleOwner)

Cheers,

Chris

The need to remove a (legacy) Exchange server using ADSIEdit could have several reasons. The method using ADSIEdit to remove an Exchange server should only be used carefully.

The most common reasons are listed below:

  • The deinstallation didn’t finish properly and left attributes or entries in Active Directory
  • The Exchange server is permanent offline Exchange and should be removed
  • An Exchange installation didn’t finish properly and the attributes and entries shoould be removed

To remove the server open ADSI-Edit and go to configuration

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
CN=Microsoft Exchange
CN=EXCHANGE_ORG
CN=Administrative Groups

for Exchange 2003
CN=First Administrative Group

for Exchange 2007
CN=Exchange Administrative Group (FYDIBOHF23SPDLT)

for Exchange 2010
CN=Exchange Administrative Group (FYDIBOHF23SPDLT)

CN=Servers

Within the container CN=Servers you can see you installed legacy Exchange servers. By right-click and hit delete you can remove the objects. You can also remove single objects of a server like public folder databases.

Refer to this article to see how to remove public folders in the different versions of Exchange.

Cheers,

Chris