Decommissioning Exchange 2010 server in a Hybrid environments – The fastest way..

Steps Decommissioning Exchange 2010 server in a Hybrid environments

This guide considers the fastest way to decommission an Exchange server in Hybrid deployment so i consider some point as implied.

So first we need to move al obbjects to the cloud …Take in mind that all must have the “onmicorosoft.com” domain.

Go to Address rule polices and add it

Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid

Now our objects has the “onmicrosoft.com” and we can move to the cloud.

Go to 365 and issue a “migration task” to do it.

Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid
Decommissioning Exchange server Office 365 Hybrid

When migration is finished, we need to remove the relationship from the on-premises and 365 (open Powershell on 2010 server and issue this commands..)

Get-OrganizationRelationship |fl

Decommissioning Exchange server Office 365 Hybrid

Remove-OrganizationalRelationship -identity “On-premises to O365 – d40db1fd-758f-4c70-a4d9-3d6027d03a6b”

Now this :

Remove-OrganizationRelationship -identity “O365 to On-premises – d40db1fd-758f-4c70-a4d9-3d6027d03a6b”

Decommissioning Exchange server Office 365 Hybrid

At this point you have to remove, under address policy the “onmicrosoft.com” domain.

Decommissioning Exchange server Office 365 Hybrid

Now issue this command:

Remove-FederationTrust -Identity “Microsoft Federation Gateway”

Decommissioning Exchange server Office 365 Hybrid

If you receive an error , you have to remove the federated domain...

To do this issue this commands..

Get-FederatedOrganizationIdentifier

Decommissioning Exchange server Office 365 Hybrid

now remove it with this command:

Remove-FederatedDomain -DomainName softcomet.it

now we can remove the Federation Gateway…

Remove-FederationTrust -Identity “Microsoft Federation Gateway”

Now remove the hybrid domains..

Decommissioning Exchange server Office 365 Hybrid

Now remove this:

Decommissioning Exchange server Office 365 Hybrid

Remove the send connector:

Get-SendConnector and remove it with remove-sendconnector

Decommissioning Exchange server Office 365 Hybrid

Now go to 365 and remove the connectors “inbound” and “outbound”

Decommissioning Exchange server Office 365 Hybrid

At this point, the last remove… Remove the Hybrid config. (if you have an exch 2013)

Decommissioning Exchange server Office 365 Hybrid

Open ADSI and delete it .

Decommissioning Exchange server Office 365 Hybrid

That’s it!

Leave a Reply

Your email address will not be published.