Orphaned User

Ok without drawing it out too much. Running Exchange 2010, did a dcpromo on another box that messed stuff up so I repromoted it. All is well except for one user. He is no longer in AD. I could just recreate him, but his mailbox appears to have vanished as well.  

It is not listed under disconnected mailboxes in the MMC. Here is the odd thing, if I run Get-MailboxDatabase "Mailbox2" | Get-MailboxStatistics his mailbox is there with 29K+ items. However if I run Get-Mailbox and dump it to text his mailbox doesn't list.

It is like Exchange has it, but I need to reconnected it to an AD user. I've already recreated his AD user. My PS is admittedly weak, but I'm sure there is a cmdlet to recreate the link, since the mailbox is clearly there.
bhiebAsked:
Who is Participating?
 
EMJSRConnect With a Mentor Commented:
Hi there, you should be able to reconnect the mailbox using the following command:
Connect-Mailbox -Identity "<your user's mailbox name>" -Database <your database name> -User ><your AD user>

Open in new window


Please replace everything inside < > (including the < >) with your information.

I hope this helps.
0
 
bhiebAuthor Commented:
To expand on the dcpromo, yes I did make sure to move the FSMO to another DC, and yes there were 2 other Global Catalogs when I originally demoted the other server. However it caused a mess, so I re promoted. For some reason this guy is the only one that messed up.
0
 
bhiebAuthor Commented:
Worked like a charm, thanks. I just didn't know the syntax, as I usually use the MMC to do this type of stuff, but his box wasn't there even under disconnected.. How well Thanks!
0
 
EMJSRCommented:
Yeah, Microsoft could've made it a little easier here and there. Some of the less common stuff I have to look up myself. Glad that it worked though!
0
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.