As announced via Message Center (MC678855) on the 2nd October 2023, we are deprecating the Exchange Online PowerShell UserPhoto cmdlets and transitioning customers to the Microsoft Graph PowerShell SDK. This deprecation is a part of a broader initiative to streamline a coherent user profile image experience by consolidating user profile photo requests to the Microsoft Graph service, allowing a more reliable profile photo experience, addressing issues with inconsistent sizes and formats, and enabling faster refresh of profile photos across the Microsoft 365 product suite.
Starting in April 2024, tenant admins will no longer be able to use the Exchange Online PowerShell UserPhoto cmdlets to Get, Set, and Remove user profile photos. Note that these cmdlets will remain functional in Exchange Server (on-premises).
Tenant admins can perform the same actions through the Microsoft Graph PowerShell SDK to Get, Set, and Remove user profile photos, or alternatively can administer the user photos through Azure Active Directory or the Microsoft 365 admin center as detailed in this article.
Refer to the table below, containing both Exchange Online PowerShell and Microsoft Graph cmdlets to locate the ones you need in Microsoft Graph PowerShell SDK.
We appreciate your patience as we work towards ensuring a unified profile photo experience are here to assist you through this transition. Reach out to the team at firstname.lastname@example.org with any feedback around this change.