Uploading High Resolution Photos using PowerShell for Office 365

When first trying to upload a high-res photo for user’s mailboxes, you’ll likely start with the manual for Set-UserPhoto and try to write some Powershell script like the below command: $user = 'john.doe@contoso.com' $userphoto = "C:\Temp\"+$user+".jpg" Set-UserPhoto -Identity $user -PictureData ([System.IO.File]::ReadAllBytes($userphoto)) -Confirm:$false (Documentation for Set-UserPhoto is here: http://technet.microsoft.com/en-us/library/jj218694.aspx) When trying to run this, however, one…

4