Security Policy Errors

Prevent Students from Changing Outlook on the Web Profile Pictures

Khadija KhanKhadija Khan Nov 14, 2026 868 views

Question details

A Microsoft 365 administrator wants to prevent students from changing their profile pictures while allowing faculty to continue updating theirs.

Prevent Students from Changing Outlook on the Web Profile Pictures
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.
Before you start

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.

Solution 1Recommended

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.

1
Connect to Exchange Online

Open PowerShell, run Connect-ExchangeOnline, and sign in with an account that has the required Exchange Online permissions.

2
Check the current policy

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.

3
Create and configure the policy

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.

4
Verify the setting

Run Get-OwaMailboxPolicy -Identity "StudentPhotoPolicy" | Format-List Name,SetPhotoEnabled and confirm that SetPhotoEnabled is False.

5
Assign and test the policy

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.

Assign a photo-restricted Outlook on the web policy to students
Allow time for changes: Changes may take up to 24 hours to take effect. Faculty retain their existing settings as long as their mailbox policies are not changed.
Free Microsoft Office alternative

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.

Use spreadsheets to organize student mailbox policy assignments.Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Navigate documents with a familiar, easy-to-use interface.Work with existing Office files in a lightweight application.
microsoft office alternative - wps office

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.