Hi,
We successfully blocked users to change their profile photos by powershell:
Set-OwaVirtualDirectory -SetPhotoEnabled $false -DisplayPhotosEnabled $true Set-OwaMailboxPolicy -Identity “Default” -SetPhotoEnabled $false get-mailbox -resultsize unlimited | Set-CASMailbox -OwaMailboxPolicy “Default
and also in ECP unticked "MyPersonalInformation".
Now, we are importing pictures to Active Directory. There are several users who uploaded their pictures before blocking process. Now I can't delete or change their photos. Even I delete photos from AD, exchange still keeps old ones. I used AdPhotoEdit, Remove-UserPhoto.
"get-mailbox $user | select haspicture" command returns HasPicture false
adsiedit -> user properties -> thumbnailPhoto is null
No replication issues in AD.
However, https://mail.domain.com/ews/Exchange.asmx/s/GetUserPhoto?email=user@domain.com&size=HR648x648 shows photo.
I've tryied to manually delete photos from C:\Program Files\Microsoft\Exchange Server\V15\clientaccess\photos\ -> no result, and after some time photos appear in that folder again.
I've restarted server one time -> no result.
In outlook, in owa and even in lync it displays these photos. How I can get rid of them?