Exchange 2010 errors on discovery mailbox

[PS] C:\Users\Administrator\Desktop>Get-Mailbox -Arbitration |fl name, DiscoverySearchMailbox


Name : SystemMailbox{1f05a927-6736-485b-9db8-376e6aacbdad}

WARNING: The object Active Directory Path.
Users/SystemMailbox{1f05a927-6736-485b-9db8-376e6aacbdad} has been corrupted, and it's in an inconsistent state. The
following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
Name : SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}

WARNING: The object Active Directory Path.
Users/SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9} has been corrupted, and it's in an inconsistent state. The
following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
Name : FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042

WARNING: The object Active Directory Path.
Users/FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 has been corrupted, and it's in an inconsistent state. The
following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
LVL 9
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Asked:
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.

Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
Im trying to use the mailbox import export function to delete a message from all of our mailboxes, that has led me to discover the above errors.

I have noticed for example the discovery mailbox is not assigned to a DB on our exchange server.
Is this default or normal or has somebody changed this in here? how do we fix this?
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
Ok ive since discovered this probably happened when some maintenance was done which included migrating all of the user mailboxes out of the original exchange db into 3 new db's.

im trying to move the 3 mailboxes into one of the new db's to resolve this.

Looks like this cant be done and we will have to recreate the mailboxes which is what I am looking at now.
MASEE Solution Guide - Technical Dept HeadCommented:
Did you check this?
If not please go through this
https://support.microsoft.com/en-us/kb/2702446
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.

AmitIT ArchitectCommented:
Goto EMC and filter with recipient type as discovery mailbox and then check, which all mailbox you can view.

Or run PS command

Get-Mailbox -Filter { RecipientTypeDetails -eq "DiscoveryMailbox" }

i am not clear about final goal, looks like you are trying to remove current db. If yes, you can review my article:
http://www.experts-exchange.com/articles/12324/How-to-Remove-First-or-Default-Exchange-2010-Database.html

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
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
Hi Guys,

I am trying to delete a single message from all of our mailboxes that is the end game here.

Doing this or more so attempting to do this led to the three system arbitration mailboxes telling me they are not assigned to a database.

Unfortunately in my job now I only have access to one Exchange 2010 server as i could cross reference otherwise.

We did some maintenance several months ago subsequently, one of our engineers moved all of our mailboxes from the default mailbox database to three new mailbox databases and then deleted the original database from the exchange server at file level, I believe this caused an issue with the system mailboxes.

They should all be assigned to a database right? and they should not be throwing out the errors I pasted out before, I have actually never seen these errors on an Exchange server before.
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
MAS I came across this article earlier alright, but I was hoping to not have to use ADSI edit on my production exchange server tbh this is a 24 7 shop. https://support.microsoft.com/en-us/kb/2702446 (the one you linked)

If I have to do it I have to, I was hoping for another way to do it to be honest.

Can anyone confirm these 3 mailboxes should be assigned to a mailbox db im pretty sure that this is the case?

Are these mailboxes required to run the mailbox search and delete function?
AmitIT ArchitectCommented:
Removing message, you can use search-mailbox cmdlet.
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
@amit the discovery mailbox is used in this process though correct? It is giving me an error message when I try to use it.
AmitIT ArchitectCommented:
No, discovery mailbox is not used. Post the error and command.
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
ok. cheers.

running two commands
1)

VERBOSE: Connecting to ADDOMAINNAME.local
VERBOSE: Connected to ADDOMAINNAME..local.
[PS] C:\Windows\system32>$mbxes = Get-Mailbox -Server  "SERVERNAME" -resultsize unlimited
WARNING: The object ADDOMAINNAME.LOCAL/OUNAME/Special Users\/Mailbox Users/DiscoverySearchMailbox
{D919BA05-46A6-415f-80AD-7E09334BB852} has been corrupted, and it's in an inconsistent state. The following validation
errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
[PS] C:\Windows\system32>

2)
[PS] C:\Windows\system32>$mbxes | Search-Mailbox -SearchQuery `Subject:"Photos From XYZREMOVED" Body:"Some photos"` -DeleteContent

Ok, good news amit I had my syntax wrong earlier when  i tried to run this and it ran for me this time and deleted the messages as i require.

Both of the above commands were what I was running and this worked. Ill still give both of you 250 for this.

Anyway, What about the arbitration mailboxes? this issue will need to be resolved for us right?
Message tracking uses these mailboxes too if im not mistaken.
AmitIT ArchitectCommented:
Arbitration are stored at forest level. Run this command.

Set-AdServerSettings -ViewEntireForest $True

 Next run below command to view Arbitration mailbox stored on your first database.

Get-Mailbox -Arbitration -Database “Default DB"

This will showing the Arbitration mailboxes.
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
[PS] C:\Windows\system32>Set-AdServerSettings -ViewEntireForest $True
[PS] C:\Windows\system32>Get-Mailbox -Arbitration -Database "Default DB"
Couldn't find database "Default DB". Make sure you have typed it correctly.
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 4DE62CD0,Microsoft.Exchange.Management.RecipientTasks.GetMailbox

as mentioned earlier we have deleted the default DB.
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Author Commented:
Thanks guys, ill perform these steps in a maintenance window soon enough.
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
Exchange

From novice to tech pro — start learning today.