Forum Discussion
fnanfne
May 05, 2020Copper Contributor
Profile pictures not updating/syncing in Teams
Hi. Profile pictures set via the following PowerShell line are not being pushed to Teams specifically. Set-UserPhoto "User" -PictureData ([System.IO.File]::ReadAllBytes("C:\Documents\Picture...
WintelGeek
Dec 04, 2020Copper Contributor
fnanfne I wish that these kinds of posts also stated which module you need to use "Get-UserPhoto" or "Set-UserPhoto", which would save people unfamiliar with these cmdlets, or even less experienced with PowerShell, time searching for that info.
import-module ?????????????
https://docs.microsoft.com/en-us/powershell/module/exchange/set-userphoto?view=exchange-ps
Set-UserPhoto "First Last" -PictureData ([System.IO.File]::ReadAllBytes("c:\photos\firstlast.jpg"))
rodney_kahane
Jan 21, 2021Copper Contributor
WintelGeekyou need to install the exchange powershell module and when you run the connect-exchangeonline commandlet, it will import all the other exchange commandlets (including get/set-userphoto)