Microsoft 365 – MAJOR UPDATE – ExchangePowerShell: retirement of tenant admin cmdlets to Get, Set, and Remove UserPhotos

Hi All,

Greetings for the day!!!

Today one more update related to Exchange online.

MAJOR UPDATE – Following Exchange PowerShell CMDLETS for User Photos are retiring next year

To execute these above CMDLETs we need to connect to Exchange Online as

#importing module - ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement

#connect to Exchange Online
Connect-ExchangeOnline

#getting user photo
Get-UserPhoto -Identity prasham@knowledgejunction1.onmicrosoft.com

Output will be
Identity    : prasham
PictureData : {255, 216, 255, 224...}
Thumbprint  : 
IsValid     : True
ObjectState : New

fig : Microsoft 365 - Exchange Online - Get, Set, Remove PowerShell CMDLETs retiring
fig : Microsoft 365 – Exchange Online – Get, Set, Remove PowerShell CMDLETs retiring

When this will happen:

The retirement is scheduled for late March 2024

Details:

After this change the ExchangePowerShell UserPhoto cmdlets for tenant admins to Get, Set, and Remove user profile photos will no longer be usable.

Instead, we can use Microsoft Graph PowerShell SDK or can administrator user photos through Azure Active Directory or through Microsoft 365 Admin Center

On Knowledge-Junction we have started tutorial on Microsoft Graph PowerShell – Microsoft 365 : PowerShell – Microsoft Graph PowerShell tutorial – Part 1 – https://knowledge-junction.in/2023/08/30/microsoft-365-powershell-microsoft-graph-powershell-tutorial-part-1/

Thanks for reading ! HAVE a FANTASTIC LEARNING 🙂 LIFE IS BEAUTIFUL 🙂

If you think article worth, kindly please share and like !

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

1 Response

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading