Removing Exchange 2007 after migration to 2010.

We are trying to remove exchange 2007 from our network after migrating to Exchange 2010.  I thought I copied all of the public folders to 2010, but when I try to uninstall I get an error:

Uninstall cannot continue. Database 'Public Folder Database': The public folder database "EXCHANGE\Second Storage Group\Public Folder Database" is the default public folder database foer the following mailbox database(s): EXCHANGE\First Storage Group\Mailbox Database

Mailbox Databae 1621939451

Before Deleting the public folder database, assign a new public folder database to the mailbox database(s)

I am assuming I need to remove the reference to the 2007 database, just not sure how to remove.

Eric RamirezAsked:
Who is Participating?
MAS (MVE)Connect With a Mentor Technical Department HeadCommented:
HI Eric,
First you took wrong decision as Exchange2010 is end of support by January 2020.
FYI Exchange 2019 is going to release in mid of thid year.
Anyway lets fix your current issue. now.

To remove the Public Folder database from the Exchange 2007 server, logon to the Exchange 2010 Server, open the Management Shell and enter the following command:
Get-PublicFolderDatabase -Identity "Name of Public Folder Database" | Remove-PublicFolderDatabase

Open in new window

This will check the Public Folder Database for any Public Folder replicas and, if none are found the Public Folder database will be dismounted and removed:
Please refer this for better understanding.

Valentina PerezExchange ServersCommented:
Hi Eric,

If you checked the Public folder in Exchange 2017, do you continue to have content?

Have you migrated all the public folders?It seems some publics folders are in Exchange 2007.

If you shutdown the server Exchange 2007. Everything works?

Have you tried removing Exchange 2007 DB first?
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Eric RamirezAuthor Commented:
I am a little hazy on the best way to remove the Exchange 2007 DB.  I have never attempted before.
Valentina PerezConnect With a Mentor Exchange ServersCommented:
HI Eric,

You need to dismount, check the users are connecting.

And after in order to remove database, you can do it by console or commands.

RoninConnect With a Mentor Commented:
If you have migrated all the users form the 2007 database to 2010 database you can safely delete the 2007 database.
Login to Exchange 2007 server, open the corresponding Exchange MMC. Navigate to the 2007 server and note the database/s provisioned under Exchange 2007 server. Open EMS and execute the following command:

Get-mailbox -Database "Exchange2007DB"

Open in new window

If it's empty, make sure to validate you have migrated Arbitration mailboxes to Exchange 2010.
Get-mailbox -Arbitration | New-MoveRequest -TargetDatabase "Exchange2010DB"

Open in new window

MAS (MVE)Technical Department HeadCommented:
Enough information to confirm answer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.