Searching for mailbox using Powershell
Hi allWeird thing which might be easy to explain for someone.when i perform a Get-mailbox "visas" command it lists 2 objects? If I specify get-mailbox -identity "visas" I get the same 2 objects also.They are actually differnet objects, on different Mailbox servers and yet both display. There are minor similarities between them in that user A alias is the same as User B displayname (i.e. Visas) and similarly the WindowsEmailAddress prefix is the same (domain isnt).Nonetheless, I thought if you specified the -identity it should only show that object (User B identity attribute doesn't have anything that relates to the "visas" string)Any thoughts\education on this for me
October 19th, 2009 3:03pm
In the -Identity parameter, you can put various values, like DisplayName, Alias, and so on. As one users displayname is another users alias, you will get the two users info when using Get-Mailbox
I would suggest you to rename one of the users, in order to avoid such situation
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2009 6:30am
get-mailbox - The Identity parameter identifies the mailbox. You can use one of the following values:
GUID
Distinguished name (DN)
Domain\Account
User principal name (UPN)
LegacyExchangeDN
SmtpAddress
Alias
it will look for these values on all mailboxes and get you the results.
October 20th, 2009 11:57am