以下为exchange 2013/2016&lync上传高分辨率照片脚本
$photo = ([Byte[]] $(Get-Content -Path "C:\your-photo\file.jpg" -Encoding Byte -ReadCount 0))
Set-UserPhoto -Identity "user’s Display Name" -PictureData $photo -Confirm:$False
Set-UserPhoto -Identity "user’s Display Name" -Save -Confirm:$False