How to remove Exchange 2010 from SBS 2011?

I have a client with SBS2011 - I have migrated them to Office 365 email.
The SBS2011 box is in decent shape and provides the basic File Share / security services that they need.

I would like to remove Exchange 2010 from the SBS2011 so that there is more resources available to the server.

Eventually client would like to bring in new server with new OS, to Active Directory and eventually remove the old SBS2011.
So it would be nice to have AD without the Exchange traces in it.
LVL 1
pyotrekAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam BrownSr Solutions ArchitectCommented:
Until you move away from SBS, you will need to put up with the Exchange stuff existing on the server and in AD. You will have significant issues if Exchange is removed. If you want to reclaim resources, you can disable the exchange services in services.msc, but I would not recommend uninstalling it or clearing Exchange from AD. SBS is annoying.
pyotrekAuthor Commented:
I am not really looking to disable the services, but rather cleanup AD for new introduction of new DC with newer OS.
Adam BrownSr Solutions ArchitectCommented:
If you're migrating to a new DC, you'll want to stand up the new DC, migrate FSMO roles, then uninstall Exchange from SBS and demote the SBS server as a DC just before turning the SBS server off permanently. Doing things in that order will clear AD up sufficiently.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

pyotrekAuthor Commented:
That is exactly my goal - so how do I uninstall the Exchange from SBS 2011?
I seem to choke on that exact point - uninstallation of Exchange.
I found all kinds of articles how to remove exchange 2010, but they talk about migrating mailboxes, public folders etc to new Exchange. I can't find any instruction on full uninstallation of Exchange 2010 - if there is no new Exchange server available.
Adam BrownSr Solutions ArchitectCommented:
In SBS 2011, open the Programs and Features snapin in Control panel, look for Exchange server, and uninstall it from there. You will need to make sure that all databases are empty (no mailboxes remain) and removed from Exchange before the uninstall will succeed.
pyotrekAuthor Commented:
I am stuck on removing Arbitration Mailboxes, and Public Folders - when I try to do that I get message that it is not allowed.
If I do not remove them - I am unable to remove Databases (Mailbox and Public)
Adam BrownSr Solutions ArchitectCommented:
Run this in Exchange Management Shell to get rid of Arbitration Mailboxes:
get-mailboxdatabase | get-mailbox -arbitration | remove-mailbox 

Open in new window

That will delete the arbitration mailboxes and allow you to delete the mailbox.


https://practical365.com/exchange-server/exchange-2010-remove-public-folder-database/ covers how to clear the public folder databases.
pyotrekAuthor Commented:
When I run the uninstallation I get following errors:

Error1.JPGError2.JPG

When I try to remove arbitration mailboxes I get following:

0.JPG
but when I try to confirm if they are gone (arbitration mailboxes) they are still there:

4.JPG

...and there are no Public Folders at all as well.
Lee W, MVPTechnology and Business Process AdvisorCommented:
Not 100% certain this is your issue, but did you set deleted item retention to 0 prior to deleting the mailboxes?  That may be your issue.
pyotrekAuthor Commented:
No I did not set the retention to 0 - prior to deleting mailboxes. I just found them in "disconnected mailboxes" section.

I reconnected them, changed the retention, deleted them again and now they are gone - but I still get the message that the mailbox database is not empty - I guess this is because I am unable to delete "arbitration mailboxes".

So current situation is as follows:

1. user mailboxes are gone.
2. retention mailboxes still exist - can't figure out a way to delete them.
3. It looks to me that Public Folders are empty - but I get a message that "Public folders XXXXXXXXXX contain replicas and therefore cannot be deleted (see my previous message and attached screenshots with errors)
The client never used Public Folders so the only thing that exists is "Default Public Folders" container, but it is empty
And "System Public Folders" with EFORMS REGISTRY, OFFLINE ADDRESS BOOK and SCHEDULE+FREE BUSY - I attempted to remove each one of them, but get message that this is not allowed.
Todd NelsonSystems EngineerCommented:
Have you attempted to run Disable-Mailbox on the arbitration mailboxes like the error states you should?  Remove-Mailbox will remove the AD account too and you don't necessarily need to or want to do that.

To remove the last public folder, review this reference ... https://technet.microsoft.com/en-us/library/dd876883%28v=exchg.141%29.aspx#Anchor_1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pyotrekAuthor Commented:
Todd Nelson:

it pays to read all error message - I think that you are right and I should run:

Disable-Mailbox <Mailbox ID> -Arbitration - DisableLastArbitrationMailboxAllowed

but I am having hard time to find the Mailbox ID - when I run:

get-mailboxdatabase | get-mailbox - arbitration

it displays 3 arbitration mailboxes but last characters in Mailbox ID is obscured by dots.

5.JPG
Is there a command to display full Mailbox ID ?
pyotrekAuthor Commented:
OK figured out the syntax to display the full mailbox identity:

get-mailboxdatabase | get-mailbox -arbitration | fl Identity
 this would display full ID for all arbitration mailboxes.

To disable them - I run following:

Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed

and enter full Mailbox ID when prompted and confirm with A
Todd NelsonSystems EngineerCommented:
Run one of these two commands to reveal the entire name and alias...

Get-MailboxDatabase | Get-Mailbox -Arbitration | fl Name,Alias

Open in new window


Get-MailboxDatabase | Get-Mailbox -Arbitration | ft -auto Name,Alias

Open in new window

pyotrekAuthor Commented:
Thanks - like I said I already figure that out, but thank for your help:

All right - it seems that I just have to figure out the Public Folders removal now...
Todd NelsonSystems EngineerCommented:
Or to disable all of them, you can run the following...

Get-Mailbox -Arbitration | Disable-Mailbox -DisableLastArbitrationMailboxAllowed

Open in new window

Todd NelsonSystems EngineerCommented:
Sufficient information provided for resolution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office 365

From novice to tech pro — start learning today.