Prevent Students from Changing Outlook on the Web Profile Pictures
Question details
A Microsoft 365 administrator wants to prevent students from changing their profile pictures while allowing faculty to continue updating theirs.

- Product
- Microsoft 365 Exchange Online and Outlook on the web
- Device & OS
- not provided
- Scenario
- Apply a profile photo restriction to student mailboxes without changing the policy assigned to faculty mailboxes.
- Observed behavior
- Students should be unable to change their photos through Outlook on the web, while faculty retain their existing photo settings.
Make sure you have Exchange Online administrative permissions and the Exchange Online PowerShell module. Identify a student mailbox for testing and check its current Outlook on the web policy before replacing it.
Assign a photo-restricted Outlook on the web policy to students
Create a separate mailbox policy to restrict photo changes in Outlook on the web without changing the policy assigned to faculty.
This policy controls photo changes through Outlook on the web. It does not necessarily prevent changes through other Microsoft 365 apps or administrative tools.
Open PowerShell, run Connect-ExchangeOnline, and sign in with an account that has the required Exchange Online permissions.
Run Get-CASMailbox -Identity student@example.com | Format-List OwaMailboxPolicy, replacing the address with a test student's mailbox. Review the existing policy before assigning a different one.
Run New-OwaMailboxPolicy -Name "StudentPhotoPolicy", then run Set-OwaMailboxPolicy -Identity "StudentPhotoPolicy" -SetPhotoEnabled $false. If students need other settings from their existing policy, configure those settings on the new policy as well.
Run Get-OwaMailboxPolicy -Identity "StudentPhotoPolicy" | Format-List Name,SetPhotoEnabled and confirm that SetPhotoEnabled is False.
Run Set-CASMailbox -Identity student@example.com -OwaMailboxPolicy "StudentPhotoPolicy" for the test mailbox. Confirm the assignment with Get-CASMailbox -Identity student@example.com | Format-List OwaMailboxPolicy, then test the photo change option in Outlook on the web. Assign the policy to the remaining student mailboxes after testing.

Work with Office files alongside your Outlook administration
WPS Office is a free, lightweight alternative for everyday document, spreadsheet, and presentation work. Its familiar interface and Microsoft Office format compatibility make it easy to move existing files into your workflow. Exchange Online profile photo policies must still be managed in Microsoft 365.

Frequently Asked Questions
Will this policy stop students from changing photos in every Microsoft 365 app?
Not necessarily. SetPhotoEnabled on an Outlook on the web mailbox policy controls the Outlook on the web experience. Review other apps and administrative paths separately if you need a broader restriction.
How do I check which policy a student mailbox uses?
In Exchange Online PowerShell, run Get-CASMailbox -Identity student@example.com | Format-List OwaMailboxPolicy, using the student's mailbox address.
Will faculty be affected by the new policy?
Faculty mailboxes are not affected by the new policy unless you assign it to them. Leave their existing policies unchanged to retain their current settings.
Why can a student still change their photo after I assign the policy?
Policy changes may take up to 24 hours. Check the assigned policy with Get-CASMailbox and confirm SetPhotoEnabled is False with Get-OwaMailboxPolicy. Also check whether the change was made through an app other than Outlook on the web.




