Forum Discussion
Andrew Price
Mar 01, 2019Copper Contributor
AD Attribute lookup using LDAP issue
Hi All I am looking at querying two domain and identifying if the custom attributes exists from domain 1 into domain 2. Using Get-ADUser is an option but I am working with over 100k AD Objects an...
- Mar 27, 2019
Darrickthank you for your reply, managed to work out my issue and created a script located on my blog
http://www.blogabout.cloud/2019/03/553/
Darrick
Mar 27, 2019Brass Contributor
Try changing the following:
From:
$sub1Searcher.SearchRoot = [ADSI]('GC://{0}' -f $ClientSB)
$sub1Searcher.SearchRoot = [ADSI]('GC://{0}' -f $clientDN)
To:
$sub1Searcher.SearchRoot = [ADSI]('GC://{0}' -f $sub1SB)
$sub1Searcher.SearchRoot = [ADSI]('GC://{0}' -f $sub1DN)
- Andrew PriceMar 27, 2019Copper Contributor
Darrickthank you for your reply, managed to work out my issue and created a script located on my blog
http://www.blogabout.cloud/2019/03/553/