thepridster Posted October 6, 2015 Posted October 6, 2015 Hi All, Does anyone know a nifty way of disabling all users profile photos? got some students changing them to silly pictures. Thanks in advance!
themightymrp Posted October 6, 2015 Posted October 6, 2015 This feature is part of the Outlook Web App Policies. Depending on if you have created more of these for different user groups you will need to do something like this in Powershell. You can find out what you have in the Exchange Admin centre under Permissions --> Outlook Web App Policies. By default you will just have the OwaMailboxPolicy-Default policy Set-OwaMailboxPolicy -Identity -DisplayPhotosEnabled $false Set-OwaMailboxPolicy -Identity -SetPhotoEnabled $false Also you can remove any currently used pictures with this: Remove-UserPhoto -Identity There is probably a way to remove it for everyone using a piped command but the above line will work for individuals.
thepridster Posted October 6, 2015 Author Posted October 6, 2015 Excellent thank you! I'll give it a try
smarties11 Posted March 31, 2020 Posted March 31, 2020 Just to add to this thread how to remove photos for all users as I needed to do this today. From Exchange PS run $users = Get-ADGroupMember -identity "#ad group name here#" -Recursive foreach ($user in $Users) {Remove-UserPhoto -Identity $user.SamAccountName -Confirm:$false} Just replace #ad group name here# with the name of a group that your users are a member of. I did it in two hits with our 'pupils' and 'staff' groups. Hope this helps!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now