hi laura,
to change the profile photo of one user, you can try the following steps.
1.
connect windows powershell to exchange online.
2. run the following command: set-userphoto -picturedata ([system.io.file]::readallbytes("c:\users\desktop\momo.jpg"))
note: please set the picture size to 96 by 96, or an error message will come out when running the parameter.
in addition, if you don’t want to use powershell, you can achieve this in exchange admin center.
1. sign in to exchange admin center as admin.
2. click on your profile picture in the upper right corner, then select “another user…”

3. find the user's mailbox that needs the picture to be updated and click ok.
4. click the "edit information" link at the bottom of the window that opened after selecting the user.
5. click the change button next to the user's profile picture, browse to the new image, and click ok a couple of times to complete the upload.
if you want to set profile photos for all the users at a time via powershell, you may need to use scripts. however, since our forum focuses on office 365 for business online services and don't support scripts, we recommend you post a new thread in
script center for professional help.
your understanding is appreciated.
regards,
violet