Hi,
Thanks for posting in Q&A platform.
We noticed that you issue was regarding of OpenQuery and LDAP query, and please understanding we are not familiar with how to write these queries. Based on discussed with our SQL and AD DS colleagues, we would like suggest you could try to contact Script Forum for further help:
https://social.technet.microsoft.com/Forums/en-us/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Best Regards,
Sunny
----------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.