SharePoint 2016多域用户问题
最近在使用SharePoint 2016中发现,对于 有多个域的,sharePoint 人员查询中无法找到其它域的用户,
这时需在SharePoint PowerShell 中执行以下命令,粗体内容需替换
$wa = Get-SPWebApplication http://sz-oa01
$adsearchobj = New-Object Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain
$adsearchobj.DomainName = "其它域名全名"
$adsearchobj.ShortDomainName = "域名简称" #Optional
$adsearchobj.IsForest = $true #$true for Forest, $false for Domain
$wa.PeoplePickerSettings.SearchActiveDirectoryDomains.Add($adsearchobj)
$wa.Update()
另一个方案
stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:DomainA.com;forest:DomainB.com,DomainB\login,password" -url "Your webapp url"