Quantcast
Viewing all articles
Browse latest Browse all 8719

Using Set-UserPhoto returns "No photo with class 'IPM.UserPhoto.Preview' exists."

Hello,

I'm trying to upload high res photo of our employees with the commands below.
But after the 'save' command the following error is shown:
No photo with class 'IPM.UserPhoto.Preview' exists.;
+ CategoryInfo          : NotSpecified: (:) [Set-UserPhoto], ObjectNotFoundException

Afterwards when checking the picture over EWS with the GetUserPhoto command, the image is working fine though.
I couldn't find anything related to this error on the web. We're using Exchange 2013 CU3.
Just wanted to check if we can just ignore this error and run the commands for all our users.

$photo = ([Byte[]] $(Get-Content -Path $picturePath -Encoding Byte -ReadCount 0))
Set-UserPhoto -Identity $UserIdentity -PictureData $photo -Confirm:False
Set-UserPhoto -Identity $UserIdentity -Save -Confirm:False


Viewing all articles
Browse latest Browse all 8719

Trending Articles