Home > Work > Updating User Profile Properties via PowerShell (PictureURL)–SharePoint 2010 #in #SP2010
  1. blaalyn
    March 30, 2011 at 09:59

    Great post! Regrettably, I keep running into:
    New-Object : Exception calling “.ctor” with “1” argument(s): “Object reference not set to an instance of an object.”
    At line:1 char:29
    + $profileManager = New-Object <<<< Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

    … and yes I load the assemblies. 🙂

    Any ideas?

  2. Kirill
  3. GrizNasty
    August 2, 2012 at 18:32

    if you encounter the issue above, i believe it means that your account doesn’t have the right permissions (maybe on the User Profile DB?). Try running as the farm account.

  1. October 3, 2011 at 06:57
  2. April 4, 2012 at 16:18
  3. July 3, 2016 at 11:41

Leave a comment