Monday , January 23 2017

Uninstalling Legacy Exchange 2007 Servers

Uninstalling Legacy Exchange 2007 Servers

Post migration to Exchange 2013. Lets see how to remove Exchange Server 2007 .

1.Verify No Mailboxes Exist on Exchange 2007 Server

2.Verify Public folders are migrated completely.

3. Remove the Exchange 2010 Offline address book .

4. Make sure all the databases and storage groups are removed.

5.Verify any applications are used for Email relaying with Exchange 2007 Server in Receive Connectors

6.If edge server exists Remove Edge server subscriptions.

5. Remove Exchange Server 2007

 

1.Verify No Mailboxes Exist on Exchange 2010 Server

Get-Mailbox -Server "ServerName"

It should return Empty.

image

You should move the discovery search mailbox as well

Sample Commands –

Moving all the mailboxes from Exchange server 2010 to Exchange Server 2013

Get-Mailbox -Server "Exch2007" | New-MoveRequest -TargetDatabase "Mailboxdatabase2013"

Moving Mailboxes from a specific database from Exchange server 2010 to Exchange Server 2013

Get-Mailbox -Database "Mailboxdatabase2007" | New-MoveRequest -TargetDatabase "Mailboxdatabase2013"

2.Verify Public folders are migrated completely.

Verify no replicas are there with this server on the public folders.

You can remove these public folders using below commands.

Get-PublicFolder -Server PFservername "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server PFservername -Recurse -ErrorAction:SilentlyContinue
Get-PublicFolder -Server PFservername "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server PFservername -Recurse -ErrorAction:SilentlyContinue
image

Remove all Public Folders otherwise you will end up with below error.

Microsoft Exchange Error 1 – The public folder database ‘Public Folder Database’ cannot be deleted.

Removing Public Folder Database Failed Error:

The public folder database “MAILSERVER\Second Storage Group\Public Folder Database” contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see http://go.microsoft.com/fwlink/?linkid=81409.

Now try to remove the PF database – You may end up with below error – Otherwise move on

Microsoft Exchange Error 2 – The public folder database ‘Public Folder Database’ cannot be deleted.

Removing  Public Folder Database Failed Error:

Object is read only because it was created by a future version of Exchange: 0.10 (14.0.100.0). Current supported version is 0.1 (8.0.535.0).

Resolution – 

Start – Run – Adsiedit.msc – Configuration partition – \Services\Microsoft Exchange\Organization Name\Administrative Groups\Exchange Administrative Group (FYDIBOHF23SPDLT)\Servers\ServerName\InformationStore\StorageGroupName\PublicFolderDBName

image

Now Clear the Garbage values from Exchange 2013 Databases –

image

3. Remove the Exchange 2010 Offline address book .

image

Offline address book – Remove

4. Make sure all the databases and storage groups are removed.

5.Verify any applications are used for Email relaying with Exchange 2010 Server in Receive Connectors

6.If edge server exists Remove Edge server subscriptions.

Verify no emails are flowing through this subscription you can disable the subscription send and receive connectors and verify mail flow.

Get-EdgeSubscription

image

Remove-EdgeSubscription edgesrv

image

5. Remove Exchange Server 2007

Start – Run – appwiz.cpl

(Add or Remove Programs) Choose Exchange Server 2007,

Clear all the Check boxes

image

Click on uninstall

image

About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Exchange Server MVP , Publisher of CareExchange.in Supporting/Deploying/Designing Microsoft Exchange for some years. Extensive experience on Microsoft Technologies.

Check Also

Remove Windows Server Backup Versions using PowerShell

Don’t know that if Windows Server Backup Disk Space Management Changed in Server Windows Server ...

Leave a Reply

Your email address will not be published.