问题描述
你好,
我最近在两个域之间配置了双向域信任,并且我希望人们选择器只能看到一个域.我通过命令设置stsadm属性来完成此操作.我已将此命令逐个应用于每个Web应用程序,但是我找不到在多个Web应用程序之间进行设置的方法.有人可以告诉我如何设置People Picker属性吗?共享点中所有所有Web应用程序或特定域下的Web应用程序,而不是一个一个地将其设置为每个单个应用程序.
并且,如果我们在"stsadm -o setproperty -pn peoplepicker-searchadforests -pv $ dn_name -url $ app_url"命令的pv参数中指定某个域名值,它是否还会访问该命令提供的域下的子域
我尝试使用的脚本是:
$ webapps = get-spwebapplication
foreach($ webapps中的$ webapp)
{
[String] $ dn_name =在此处输入域名"
[String] $ app_url = $ webapp.getresponseuri(spurlzone.default).absoluteuri
stsadm -o setproperty -pn peoplepicker-searchadforests -p $ dn_name -url $ app_url
$ webapp.Update()
}
Thanx
Hello,
I have recently configured a two way domain trust between two domains.And I want people picker to be able to see across only one domain. I have done this by setting stsadm property through command.I had applied this command to every web app one by one.But I could not find a way to set this across multiple web apps.Can anybody pls tell me how to set people picker property of all the web apps or web apps under specific domain that are in the sharepoint instead of setting it to every single app one by one.
And if we specify a certain domain name value in the pv parameter of "stsadm -o setproperty -pn peoplepicker-searchadforests -pv $dn_name -url $app_url " command , does it also access the sub domains under the domain which is provided in command
script i am trying to use is :
$webapps = get-spwebapplication
foreach ($webapp in $webapps)
{
[String]$dn_name ="enter domain name here"
[String]$app_url=$webapp.getresponseuri(spurlzone.default).absoluteuri
stsadm -o setproperty -pn peoplepicker-searchadforests -pv $dn_name -url $app_url
$webapp.Update()
}
Thanx
推荐答案
这篇关于人员选择器属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!