Way to search all users in exch 2016 for certain attribute values

vmich
vmich used Ask the Experts™
on
Is there a way to search all users mailboxes in Exchange 2016 to see what values are set for the following items in the attributes that show up in the attribute editor

msexchrecipientdisplay type
msexchrecipient Type details
msexchremoterecipient type

Not sure if this can be done via PowerShell and if so, what is the command?
Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Service Manager
Top Expert 2012
Commented:
Please use this PowerShell command.

Get-Mailbox -ResultSize Unlimited | Select Alias, Primary*, *Recipient* | Export-Csv C:\temp\RecipientType.csv -notypeinformation

Author

Commented:
Raj,
I ran your command but it doesn't show the 3 items that I requested above.
Am I doing something wrong or am I looking at the out put wrong?
Rajkumar DuraisamyIT Service Manager
Top Expert 2012

Commented:
You will the results like recipienttype, recipienttypedetails on the output..

RecipientType = msExchRecipientDisplayType
RecipientTypeDetails = msExchRecipientTypeDetails
RemoteRecipientType = msExchRemoteRecipientType

You will see the remote recipient type values when you have hybrid Exchange environmet.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Raj,
Sorry just getting back this.
But when I go into the attribute editor ADUC on a users I see the values like this:

msExchRecipientDisplayType
1073763981

msExchRecipientTypeDetails
1


msExchRemoteRecipientType
2

Now when I run the command you showed me, it does not display these items like this. Am I missing something with the command or the output?

Author

Commented:
Forget my last response I may have figured it out. My stupidity... :)

Author

Commented:
Raj,
This report is great now I have one more question..
Is there a way to generate a report with the same values from Active Directory so as not to use the Get-Mailbox command but a command to get the values from AD?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial