Sync SharePoint 2010 User Profile PictureUrl attribute with AD attribute

This Powershell script allows you to synchronize an Active Directory custom attribute with the SharePoint 2010 user profile service application PictureUrl property

4 Star
1,964 times
Add to favorites
E-mail Twitter Digg Facebook
  • DotNetMethodExeption
    3 Posts | Last post September 19, 2012
    • Hi,
      When I try to run this code I get this error:
      Exception calling "FindAll" with "0" argument(s): "A referral was returned from the server."
      at file...
      + $colResults = $objSearcher.FindAll <<<< ()
      + CategoryInfo: NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : DotNetMethodException
      What could be my mistake?
    • my LDAP connection was wrong...
    • Hi, that could indeed cause your error. Glad you were able to solve it.