locked
"STSADM -o setproperty -pn peoplepicker-searchadforests" is not removing domains RRS feed

  • Question

  • Hi there,

    We acquired a small company - and our Network department established one way trust between their AD Forest and our AD Forest. But now our SharePoint People Picker shows "DomainOfAcquiredCompany\All Employees" and its users e.g. John Smith. As of now we do NOT want this to appear in SharePoint People Picker. 

    So I ran this STSADM command 

    STSADM -o setproperty -pn peoplepicker-searchadforests -pv "domain:domain.com" -url "http://sharepoint

    It returns Operation completed successfully - still I am able to see the newly acquired company's domains in PeoplePicker.

    (Interestingly this worked fine on MySite but not working on our main site).

    Any help will be appreciated. Thank you so much




    • Edited by frob Monday, March 9, 2015 11:06 PM
    Monday, March 9, 2015 8:36 PM

Answers

  • I called up Microsoft Support and they fixed it by using this command "Get-SPSite http://sharepoint | Get-SPWeb | Remove-SPUser "UnwantedDomain\username"". They did this for all the users that were appearing. They said it happened because they were stored in Site's cache/properties.

    Above fixed it. Thanks.

    • Marked as answer by frob Monday, March 16, 2015 9:02 PM
    Monday, March 16, 2015 9:02 PM