Set-UserPhoto - extremely SLOW

Copper Contributor

 

We have to bulk upload ~50.000 pictures.. Averge size ~ 30 kB
At least each upload takes 8 seconds. 

Is this normal?

Has anyone significant better reponse times?!!

 

Suggestions to improve the response times are appreciated!

 

Regards Peter

 

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/?proxymethod=rps -Credential $UserCredential -Authentication Basic -AllowRedirection

SetUserPhoto.png

 

 

 

 

SetUserPhoto-Photo.png 

 

 

 

2 Replies

I find it VERY slow too. I intend to have a scheduled task run to do this for well over 1000 images and think it may be unworkable due to the speed. Would welcome advice too.

 

Mark

Just a thought but do you proxy HTTPS traffic in any way to the Office 365 endpoints?  8 seconds doesn't seem bad but I guess it is when you have 50,000 pictures to process.