How to extract certain attribute values for all users via Get-Aduser

vmich
vmich used Ask the Experts™
on
I need to extract the following attribute values for all users in our organization.
We have over 4500 employees so I need the command to list them all.
What we are looking for is these 3 values for all users:
msExchRemoteRecipientType
msExchRecipientDisplayType
msExchRecipientTypeDetails

I guess this can be done with Get-Aduser but I am not good with commands  to get it to work.
I was able to get these values via Get-Mailbox thanks to Raj on this site but now need the same values extracted from AD.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Commented:
Sure, that's easy to do:
get-aduser q -property msExchRemoteRecipientType, msExchRecipientDisplayType, msExchRecipientTypeDetails |
  select Name, UserPrincipalName, ms*

Open in new window

Author

Commented:
Sorry I forgot to close this.

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