I am trying to find the all the users in ad whose address is hidden on address book because msexHidefromaddresslist attribute is set to true by mistake.
I am keen acheive this via AD query.
I have got this query (&(objectclass=user)(msExchHideFromAddressLists=TRUE)) which does not return any results.
Any help or right direction will be highly appreciated.
ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
None
0 Points
3 Posts
AD query to find user with attribute Hidefromaddresslist=true
Feb 23, 2021 05:10 AM|ITLOL|LINK
Hi all,
I am trying to find the all the users in ad whose address is hidden on address book because msexHidefromaddresslist attribute is set to true by mistake.
I am keen acheive this via AD query.
I have got this query (&(objectclass=user)(msExchHideFromAddressLists=TRUE)) which does not return any results.
Any help or right direction will be highly appreciated.
Contributor
3990 Points
1562 Posts
Re: AD query to find user with attribute Hidefromaddresslist=true
Feb 24, 2021 04:02 AM|yij sun|LINK
Hi ITLOL,
According to your description,I have some doubts.
1.Do you use ADUC? The query is an attribute in AD ADUC.
2.Do you have errors? If you have errors,you could post to us.It will help us to solve your problems.
More details,you could refer to below articles:
https://community.spiceworks.com/topic/459856-how-to-find-all-ad-users-that-are-hidden-from-exchange
https://www.varonis.com/blog/active-directory-users-and-computers/
Best regards,
Yijing Sun
None
0 Points
3 Posts
Re: AD query to find user with attribute Hidefromaddresslist=true
Feb 24, 2021 04:13 AM|ITLOL|LINK
Yes we do have ADUC and there are no error messages. I does not return any results, even though there are many users who are hidden from address list.
None
0 Points
3 Posts
Re: AD query to find user with attribute Hidefromaddresslist=true
Feb 24, 2021 04:16 AM|ITLOL|LINK
i used this query already and it does not work in my case.
(&(objectclass=user)(msExchHideFromAddressLists=TRUE))
May be I am not defining objectclass properly. We got maultipe OUs per sites and within parent OUs we have child OUs for users, groups and hardware.