Unable to remove/update 96x96 UserPhoto

FIM 2010 is updating my users "thumbnailPhoto" with a 160x203 ~50kb image.

As standard Exchange 2013 cu2 then magically adds the image to the users mailbox if i have understand correctly.

I can see them in:

https://exchange2013.local/ews/Exchange.asmx/s/GetUserPhoto?email=user@contoso.com&size=HR96x96
https://exchange2013.local/ews/Exchange.asmx/s/GetUserPhoto?email=user@contoso.com&size=HR120x120
https://exchange2013.local/ews/Exchange.asmx/s/GetUserPhoto?email=user@contoso.com&size=HR240x240

The problem i have now is that the "96x96" is not updating to a new image when the user gets a new image in thumbnailphoto.

And i can't delete the photo with:
Remove-UserPhoto <email>
Remove-UserPhoto <username>
set-mailbox <username> -removepicture

The user variable is flushed, all image sizes but 96x96 gets removed. (all images are however 160x203 although you specify that you want a different resolution)

LOG:
Cmdlet suceeded. Cmdlet Remove-UserPhoto, parameters {Identity=<email>}.
Cmdlet suceeded. Cmdlet Set-Mailbox, parameters {RemovePicture=True, Identity=<email>}.

So im stuck with old HR96x96 images on my users, the image that shows in Exchange as standard.
Lync 2013 seems to use another size of the image, so everything works there.

EDIT:
The problem is only occasionally, do not apply to all users

November 12th, 2013 11:38am

Hi,

Lets begin with the following article about adding thumbnailPhoto with FIM:

http://uccexperts.com/adding-thumbnailphoto-to-fim-galsync/?utm_source=rss&utm_medium=rss&utm_campaign=adding-thumbnailphoto-to-fim-galsync

The first step is to use import-recipientdataproperty to add user picture to AD.  

However, as far as I know, the Import-RecipientDataProperty cmdlet won't allow you to import a photo that's larger than 10K even though the thumbnailPhoto attribute can accomodate photos of up to 100K in size:

http://blogs.technet.com/b/exchange/archive/2010/03/10/3409495.aspx

If you have any question, please feel free to let me know.

Thanks,

Angela

Free Windows Admin Tool Kit Click here and download it now
November 13th, 2013 1:38pm

Ok, after some more research, the photos are not automatically loaded into exchange.As it says in: http://msdn.microsoft.com/en-us/library/office/jj190905(v=exchg.150).aspx
"If no photo is stored on the Exchange server, the thumbnail image stored in Active Directory Domain Services (AD DS) will be returned."

Add photo to Exchange:

$photo = ([Byte[]] $(Get-Content -Path "C:\Photos\contosouserHD.jpg" -Encoding Byte -ReadCount 0))
Set-UserPhoto -Identity user@contoso.com -PictureData $photo -Confirm:$False
Set-UserPhoto -Identity user@contoso.com -Save -Confirm:$False

I get all the sizes when checking at the EWS, but still 96x96 is the old wrong one. Also adds the photo to "thumbnailPhoto" in the AD.

Add photo to AD (as Angela said):

Import-RecipientDataProperty -Identity user@contoso.com -Picture -FileData ([Byte[]]$(Get-Content -Path c:\Photos\contosouser96x96.jpg -Encoding byte -ReadCount 0))

Adds the photo to AD (thumbnailPhoto) but nothing is done with the Exchange.
The 96x96 version is still the old wrong one.


  • Edited by Mikael.Hagberg Wednesday, November 13, 2013 2:39 PM Code Block bugg
November 13th, 2013 2:38pm

Finally, I found an ugly but still a solution for this problem.

"New-MoveRequest"

Yes...to move the problematic mailbox to a new database solved the problem ..

 
  • Marked as answer by Mikael.Hagberg Wednesday, November 13, 2013 4:09 PM
Free Windows Admin Tool Kit Click here and download it now
November 13th, 2013 4:09pm

I fix it, with next steps:

1. Remove photo from all servers from c:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\photos

2. run Set-UserPhoto 

3. Get-OfflineAddressBook | Update-OfflineAddressBook

4. close my outlook 2013 and remove oab files.

5. Run outlook, I see new photo, in c:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\photos also see new photo.

October 17th, 2014 5:43am

For me this issue is fixed in Exchange 2013 SP1 and onwards.
Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2015 9:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics