...
Warning |
---|
If you get an "object reference not set" error running this make sure you have permission to the User Profile Service. Central Admin -> Service Applications -> User Profile Service (Click Permissions from the Ribbon) You also need to make sure the account running this command has permission to update the photos in the My Site web application. |