How to reset the people-picker-searchadcustomquery property in wss 3.0
Dear Community,I have setup the people-picker-searchadcustomquery property for a sitecollection. Now, I would like to reset this setting. What should I do to change the propery to:<Property Exist="No" />Setting the property to <Property Exists="Yes" Value "" /> works but isn't a fine solution.Best regards,Lucian
March 16th, 2010 7:03pm
Hi Lucian,You can set this value via the api, instead of using stsadm.For example
using (SPSite site = new SPSite("http://somesite"))
{
SPWebApplication app = site.WebApplication;
app.PeoplePickerSettings.ActiveDirectoryCustomQuery = null;
app.Update();
}
After running you should find the <Property Exist="No" /> as desired.What I find interesting is that this property doesn't seem to be a property that belongs to a site collection, but the entire web application. I think I'm going to have to do some more research into this property.Hope that helpsPaul.
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2010 3:01am
Hi Paul,
thank you for your answer. Your solution has helped me.
But it would be much easier to do that without code. Unfortunately it's not implemented in the stsadm.exe
Best regards,Lucian
March 25th, 2010 1:36pm
I know that is unfortunate. When I get some spare time I might write an stsadm extension for handling this. Something like
stsadm -o deleteproperty -pn "..."
Another alternative would be to write a PowerShell cmdlet to run the code mentioned above.
Free Windows Admin Tool Kit Click here and download it now
March 25th, 2010 4:16pm