Hi All, hope you're well.
Wondering if anyone knows how to do a reverse look up on a an archive mailbox.
So if you do a
on a mailbox database that has Exchange 2010 Archives in it, you get the stats of each mailbox in that database. I'm trying to find a way in PowerShell to look up the mailbox that is associated with that Archive.
At the moment I'm doing some string manipulation to do it.
So a mailbox called 'Mouse, Mikey (UK - London)' would have an archive called 'Personal Archive - Mouse, Mikey (UK - London)'
So to get the mailbox I'm basically putting all the archive mailboxes into a variable called for example $archives and then doing this
the problem is that this does depend on the archive name being formatted correctly which isn't always the case in an environment this size.
I've done a
and
to compare an archive and mailbox but can't see anything.
Any thoughts?