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.
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
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
Now Clear the Garbage values from Exchange 2013 Databases –
3. Remove the Exchange 2010 Offline address book .
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
Remove-EdgeSubscription edgesrv
5. Remove Exchange Server 2007
Start – Run – appwiz.cpl
(Add or Remove Programs) Choose Exchange Server 2007,
Clear all the Check boxes
Click on uninstall