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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,669 other followers

%d bloggers like this: