Avatar of vmich
vmich
Flag for United States of America asked on

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

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
PowershellExchange

Avatar of undefined
Last Comment
vmich

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rajkumar Duraisamy

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
vmich

ASKER
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 Duraisamy

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.
vmich

ASKER
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?
Your help has saved me hundreds of hours of internet surfing.
fblack61
vmich

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

ASKER
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?