A family of Microsoft on-premises document management and storage systems.
Hi @Yeung, Patrick CP,
Thank you for posting in the community.
1, Yes, you need to run the command for every Web Front End server in your farm.
2, If the AD domain has a 1-way trust, then you need to specify a username and password first, execute the following commands on every server in the farm:
stsadm -o setapppassword -password <Password>
Ensure you use the same password for each server you execute this command on!
After executing this command, then execute your peoplepicker-searchadforests command.
3, Whether you use forest or domain in the command depends on whether you want to connect two forests or domains. The value after -pv is a valid list of forests or domains. The format of the list of forests or domains value includes the following:
- forest:DnsName,LoginName,Password
- domain:DnsName,LoginName,Password
Here is the example:
stsadm -o setproperty -url http://<server:port> -pn peoplepicker-searchadforests -pv "forest:contoso.corp.com,LoginName,Password;domain:bar.contoso.corp.com,LoginName, Password"
Here are some articles with more detailed information about the commands you use, please check:
https://www.sharepointdiary.com/2011/06/configure-people-picker-for-multidomain-forest.html
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.