Imagine you have a bunch of pictures of your users… and imagine that they are 648×648 pixels and are named %username%.jpg.
Wouldn’t it be awesome if you could upload those in Office 365 without bothering your users with an instruction?
At the TechNet Gallery I’ve published a PowerShell function that will do so for you.
The usuage is pretty simple. Load the function, and then make sure you have a session with Office 365 (otherwise it will present you with an error). And make sure you are connected via the RPS proxy method. Otherwise you’ll be limited to pictures of 96×96 pixels with a max size of 10kb. Which look pretty crappy in Office 365, which shows the pictures in sizes up to 648×648.
$Creds = Get-Credential
$RemoteSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/?proxymethod=rps -Credential $Creds -Authentication Basic –AllowRedirection
Import-HighresPictures -Folder c:\picturespath
Feel free to share updates and ideas! You can find the script here: https://gallery.technet.microsoft.com/Import-High-resolution-579bd9b3