Exchange 2010 Get Mailbox owner

I have a list of 64 shared mailboxes. Management wants to know the owner of each of these mailboxes. I run the command  "mailbox"  | get-mailbox | get-mailboxpermission -owner. I am assuming the only way to get a list of owners for all mailboxes would be to add the "mailbox" for each mailbox and then run the command. While this could take some time, i'm ok doing the work. The problem i have is some mailboxes return the following error . I am not sure how to decipher this error. I know the mailbox exists and i copy and past the alias to make sure i'm typing it correctly. If i could get this list to work i can pipe it to a csv file. But, this error comes up even if i run the command only on one of the problem mailboxes. Any ideas?

Some or all identity references could not be translated.
    + CategoryInfo          : NotSpecified: (:) [Get-MailboxPermission], IdentityNotMappedException
    + FullyQualifiedErrorId : System.Security.Principal.IdentityNotMappedException,Microsoft.Exchange.Management.Recip
Eddie CrosbyAsked:
Who is Participating?
I think it more likely that these mailboxes have a reference to a deleted mailbox. Looking at MSDN I can see it says:-

"Represents an exception for a principal whose identity could not be mapped to a known identity."


and choose the ".net 3.5" version for more

So what has happened is that permissions have been granted to a user, that user has then been deleted from Active Directory, so you are left with a hanging SID.
Jian An LimSolutions ArchitectCommented:
by a wild guess, it looks like these shared mailbox do not have a owner set in the beginning.
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.