Restored mailbox database, can't see the mailboxes

We had a database get dismounted and deleted accidentally, as a result, user lost access to their mailboxes.
Fortunately I had a backup of just the .edb, .chk and .log files, which I was able to use eseutil against to repair and arrived at a clean shutdown state for the .edb file.
So what I did was, I went back into Exchange Console, created a new database under the same name "DB1" as the one that was deleted before it, and specified the folder to use. Left it dismounted. I've also got the "this database can be overwritten by a restore" checked.
I then copied over the restored .edb and .chk files to the folder the new database using the same name was under, and then I mounted the new database DB2 and it said it mounted successfully.
The .edb file is 127GB, and I know there are mailboxes on it, however, I cannot see any mailboxes in the "Recipient Configuration > Mailbox" when I drill down to this new database.
How do I get these mailboxes to show back up?
I can browse the .edb with a third party tool, so how can I get the same mailboxes to "show up" inside the Exchange Management Console?
I see nothing under "Disconnected mailbox" either.
garryshapeAsked:
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.

garryshapeAuthor Commented:
I tried updating the homeMDB in ADSI edit for one of the users who had a mailbox on the database, and while their name will show up in the Recipient Mailbox area for that database in Exchange Management Console, I don't show that they have any email. I run Get-MailboxStatistics against their mailbox and it comes back with "There is no data to return for the specified mailbox"    
so I've no idea how to awaken their mailbox within this mounted edb file to connect with their account...
Simon Butler (Sembee)ConsultantCommented:
You have to reconnect the user accounts to the mailbox.
They should be listed under Disconnected Mailbox in EMC.

Simon.
garryshapeAuthor Commented:
Noone show under disconnected and their database was removed Friday what should I do?
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

garryshapeAuthor Commented:
Ok for some reason I am showing mailboxes under Disconnected.

When I try to right-click their mailbox and choose Connect, I'm not seeing any matching names to match them to?
garryshapeAuthor Commented:
I tried in Powershell:

Connect-Mailbox -Identity "Paul Abram Shrogin" -Databas
e "DB2" -User "PShrogin" -ManagedFolderMailboxPolicyAllowed -DomainContr
oller sub.domain.com and get:

Connect-Mailbox : The mailbox that you specified is connected to "Paul Abram Sh
rogin". Only disconnected mailboxes can be reconnected. Specified mailbox: "1b9
6d175-f3d1-447d-b279-8edeffa566d4".
At line:1 char:16
+ Connect-Mailbox <<<<  -Identity "Paul Abram Shrogin" -Database "DB2"
-User "PShrogin" -ManagedFolderMailboxPolicyAllowed -DomainController sub.domain.com
    + CategoryInfo          : InvalidOperation: (:) [Connect-Mailbox], Invalid
   OperationException
    + FullyQualifiedErrorId : 768ADF4B,Microsoft.Exchange.Management.MapiTasks
   .ConnectMailbox



should I clear the user's msExchMailboxGuid in ADSI, then what?
garryshapeAuthor Commented:
Yeah not sure getting this now after I try same command:

Connect-Mailbox -Identity "Paul Abram Shrogin" -Databas
e "DB2" -User "PShrogin" -ManagedFolderMailboxPolicyAllowed -DomainContr
oller sub.domain.com
Connect-Mailbox : The LegacyExchangeDN "/O=CAFE/OU=EXCHANGE ADMINISTRATIVE
GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=PSHROGIN" of "Paul Abram Shrogin" is b
eing used by the following user in Active Directory: "Paul Abram Shrogin". The
value for LegacyExchangeDN must be unique to each user.
At line:1 char:16
+ Connect-Mailbox <<<<  -Identity "Paul Abram Shrogin" -Database "m7sg12priv1"
-User "PShrogin" -ManagedFolderMailboxPolicyAllowed -DomainController sub.domain.com
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...ilboxStatist
   ics:MailboxStatistics) [Connect-Mailbox], MdbAdminTaskException
    + FullyQualifiedErrorId : 9B57ECEF,Microsoft.Exchange.Management.MapiTasks
   .ConnectMailbox
Simon Butler (Sembee)ConsultantCommented:
As far as Exchange is concerned, the user still has a mailbox.
Therefore you need to remove the attributes from the user so you can reconnect them to the mailbox.
However before you do, make sure that you have noted all of its email settings, as those will be lost. Email addresses etc. You will probably need to create an X.500 address on the account as well so old email works correctly.

Simon.

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
garryshapeAuthor Commented:
ok so what kind of email settings are lost?
The users just use OWA so would we still need to do anything?
I'm not sure what attributes need to be removed to be honest...
garryshapeAuthor Commented:
Ok thanks, I finally finished the battle thanks for your help.

Disabled the mailbox, then "Connect-mailbox" for them accordingly.

All is well now, except that they're missing a few days of e-mails, but oh well :( :(

First mount existing DB as advised prior with allow overwrite checked on the DB properties.
Then run in powershell:
Get-MailboxDatabase | Clean-MailboxDatabase
Then go into a DC and open AD Sites & Services and trigger Replicate Now on a DC within each relevant group of DC's.

Check Disconnected Mailboxes in the EMC and you should start to see the disconnected mailbox users.
Then run this command, changing the database accordingly:
get-mailboxstatistics -database DB2 | where { $_.DisconnectDate -ne $null } | connect-mailbox -database DB2 -DomainController subDC.subdomain.com

Open in new window


-DomainController was necessary on my part but probably won't be in most environments. Use it if you're erroring out on all the users and suspect the users are in the sub-domain.

Errors will also be reported for those AD users who are "Disabled" in AD.

What a past few days. I was about to collapse from this madness.
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.