SOLVED

remove profile picture

%3CLINGO-SUB%20id%3D%22lingo-sub-215750%22%20slang%3D%22en-US%22%3Eremove%20profile%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-215750%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20experts%3C%2FP%3E%3CP%3Ei%20have%20a%20requirement%20to%20delete%20profile%20picture%20of%20an%20outlook%20account.%3C%2FP%3E%3CP%3EOWA%20is%20disabled%20in%20my%20environment%20so%20i%20cannot%20conenct%20to%20the%20remote%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewill%20the%20below%20powershell%20command%20can%20i%20remove%20the%20profile%20picture%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3ERemove-UserPhoto%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-string%22%3E%22myuser%40mydomain.com%22%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-215750%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-215889%22%20slang%3D%22en-US%22%3ERe%3A%20remove%20profile%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-215889%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20this%20commandlet%20will%20remove%20the%20user%20photo.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emore%20details%20here%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fmailboxes%2Fremove-userphoto%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fmailboxes%2Fremove-userphoto%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-215783%22%20slang%3D%22en-US%22%3ERe%3A%20remove%20profile%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-215783%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20general%20it%20depends%20on%20how%20the%20photo%20was%20set%2C%20but%20yes%2C%20Remove-UserPhoto%20will%20remove%20it%20from%20any%20Exchange-related%20clients.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1655415%22%20slang%3D%22en-US%22%3ERe%3A%20remove%20profile%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1655415%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20not%20allow%20me%20to%20remove%20my%20profile%20picture%20and%20I%20do%20not%20know%20what%20to%20do%20so%20can%20I%20have%20so%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2076742%22%20slang%3D%22en-US%22%3ERe%3A%20remove%20profile%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2076742%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20executed%20your%20steps%20succesfully.%20I%20want%20to%20remove%20photos%20for%20multiple%20users%20on%20their%20teams%20profiles%2C%20maybe%20it%20just%20takes%20time%20but%20I%20have%20read%20that%20the%20teams%20profile%20photo%20is%20synced%20from%20owa%20web%20app%20profile%20photo.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20know%20if%20this%20is%20correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi experts

i have a requirement to delete profile picture of an outlook account.

OWA is disabled in my environment so i cannot conenct to the remote user.

 

will the below powershell command can i remove the profile picture

Remove-UserPhoto "myuser@mydomain.com"

6 Replies

In general it depends on how the photo was set, but yes, Remove-UserPhoto will remove it from any Exchange-related clients.

best response confirmed by Rising Flight (Frequent Contributor)
Solution

Yes, this commandlet will remove the user photo.

 

more details here:

 

https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/remove-userphoto?view=exchange...

It is not allow me to remove my profile picture and I do not know what to do so can I have so help

Hi,

 

I have executed your steps succesfully. I want to remove photos for multiple users on their teams profiles, maybe it just takes time but I have read that the teams profile photo is synced from owa web app profile photo.

 

Do you know if this is correct?

 

Thank you very much

Hi Everyone,
I removed photos from selected profiles using the remove-userphoto command. According to the get-userphoto command, user profiles do not contain a profile photo. For most users, the change did not take effect
Is there just another place where profile pictures are stored in O365?

Thanks so much for your response!

@Zdenek Korinek Hi, this can be a bit confusing (I know). Teams honors the OwaMailboxPolicy setting using the -SetPhotoEnabled value. You can set it to $true or $false for controlling if they should be able to change their profile picture. The tricky part is how Teams cache things, and the best way to force a refresh is to clear cache, usually by signing out manually and back in. You can actually use Teams on the web for verification.

 

Here's an official article on the cache process

User information isn't updated in Microsoft Teams - Microsoft Teams | Microsoft Docs

 

Adding this on the topic and for the table "Modify user profile picture"

How Exchange and Microsoft Teams interact - Microsoft Teams | Microsoft Docs