Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 13-May-12 21:05pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900