How to find users mailbox server based on db

by turbomcp at 2012-10-17 14:51:13

Hi there
quick question
its exchange but not really exchange since it can be applied to anything.
in exchange 2010 the usermailbox can reside on any server so it is being tracked by the db the mailbox is on
so in previous versions if you issue get-mailbox user1
youll get
name alias servername

in 2010 you get the same just the "servername" isnt the real server so to find that out you really need to somehow pipe the results of get-mailbox |FL database
then get-mailboxdatabasecopy databasename\server name "mounted"
so i thought maybe something like this:

$user=get-mailbox user1
get-mailboxdatabasecopy $user1.database
but it expects database\servername so i get error that it cant find:
get-mailboxdatabasecopy db1 (cause it needs to be db1\server1, server2 ,server 3 where one of them is the one listed as mounted=active server)


any ideas how to "attack" this?


Thanks in advance
by DonJ at 2012-10-17 15:23:04
I’m going to move this to our Exchange forum.
by turbomcp at 2012-10-18 05:02:51
i ended up doing it like this:
$user=get-mailbox user1
get-mailboxdatabase $user.database