We run Exchange 2010 SP1 on Windows 2008 R2 server. We have 3 hub/cas and 3 db servers with exchange 2010. No other exchange servers in our system. The users in the database Im working on is linked to a user acocunts in another domain in another tree.
I need to make a list of all the users in a database with their displayname, alias, primarysmtpaddress and all their other mailaddresses.
I have tried several command without success.
Here is an example of what I have tried:
Get-Mailbox -Database "dbname" | Select-Object alias, displayname, primarysmtpaddress
This command will list all the room mailboxes, and no users! Why will this not list the users?
I also tried what is mentioned in this article: http://unlockpowershell.wordpress.com/2010/01/27/powershell-get-mailbox-display-smtp-addresses/
Still no luck. Does anyone have a good string of command that wil list my users?