OwaMailboxPolicy
Applies to : Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Server SE, Exchange Online
This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings might be exclusive to one environment or the other.
Use the Set-OwaMailboxPolicy cmdlet to configure existing Outlook on the web mailbox policies.
For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.
In on-premises Exchange, the default Outlook on the web mailbox policy is named Default. In Exchange Online, the default Outlook on the web mailbox policy is named OwaMailboxPolicy-Default.
Changes to Outlook on the web mailbox policies might take up to 60 minutes to take effect. In on-premises Exchange, you can force an update by restarting IIS (Stop-Service WAS -Force and Start-Service W3SVC).
You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.
Available cmdlets
Parameters
Examples
Example 1
Set-OwaMailboxPolicy -Identity EMEA\Contoso\Corporate -CalendarEnabled $false This example disables access to the calendar for the mailbox policy named Corporate for the tenant Contoso in the organization EMEA.
Example 2
Set-OwaMailboxPolicy -Identity Default -TasksEnabled $false This example disables access to the Tasks folder for the default mailbox policy in an on-premises Exchange organization.
Example 3
Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -AllowedFileTypes '.doc', '.pdf' This example sets the allowed file type extensions to .doc and .pdf for the default mailbox policy in an Exchange Online organization, allowing users to save files with those extensions locally or view them from a web browser.
Example 4
Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -UserVoiceEnabled $false This example disables Outlook UserVoice for the default mailbox policy in Microsoft 365.
Example 5
Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" -AllowedOrganizationAccountDomains $null This example sets the allowed organizational accounts to $null for the default mailbox policy in an Exchange Online Organization, allowing users to add any other Exchange account to Outlook.
Example 6
Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" -AllowedOrganizationAccountDomains "fabrikam.com","contoso.com" This example sets the allowed organizational accounts to allow @fabrikam.com and @contoso.com accounts for the default mailbox policy in an Exchange Online Organization, allowing users to add accounts from those domains to Outlook, blocking all other domains.