We are using Exc2007 servers and in my organizatio we have one primary domain controllers and two child domain controllers as below.
3)ad1.dc.domain.com All domain users have mailboxes. Now i would like to run the powershell script to get the info like userdisplay name and database name and storage group name and domainname as well. I ran below script
Get-mailbox -Organizationunit 'name' | get-mailboxstatistics | select-object displayname, servername, databasename, storagegroupname i was getting this info. But i was unable to get the domain name as user belongs to which domain (1dc.domain.com 2) ad.dc.domain.com 3)ad1.dc.domain.com. Can anyone help on this.