From 15ad451351f17e69c5bb4fd858510d7645bd4d50 Mon Sep 17 00:00:00 2001 From: colinmorris1992 Date: Mon, 8 Dec 2025 14:24:49 -0800 Subject: [PATCH 1/4] Learn Editor: Update Set-OwaMailboxPolicy.md --- .../Set-OwaMailboxPolicy.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md b/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md index 164572be01..2ed5a2d5f5 100644 --- a/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md +++ b/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md @@ -452,6 +452,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +## EXAMPLES + +### Example 1 + + +```powershell +Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" - +``` + +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 2 + + +```powershell +Set-owaMailboxPolicy -Identity " +``` + +This example sets the allowed organizational accounts to allow @microsoft.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. + ### -AllowOfflineOn > Applicable: Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Server SE, Exchange Online From 69742d254ef73a8f012f43c9008e66b88ee560d2 Mon Sep 17 00:00:00 2001 From: colinmorris1992 Date: Mon, 8 Dec 2025 14:25:01 -0800 Subject: [PATCH 2/4] Learn Editor: Update Set-OwaMailboxPolicy.md From b5e7a3977d5992cff455acf173962a457e341288 Mon Sep 17 00:00:00 2001 From: Chris Davis Date: Mon, 8 Dec 2025 15:31:09 -0800 Subject: [PATCH 3/4] Update Set-OwaMailboxPolicy.md --- .../Set-OwaMailboxPolicy.md | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md b/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md index 2ed5a2d5f5..6eb27a566a 100644 --- a/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md +++ b/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md @@ -197,6 +197,20 @@ Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -UserVoiceEnabled $false This example disables Outlook UserVoice for the default mailbox policy in Microsoft 365. +### Example 5 +```powershell +Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" - +``` + +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 +```powershell +Set-OwaMailboxPolicy -Identity " +``` + +This example sets the allowed organizational accounts to allow @microsoft.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. + ## PARAMETERS ### -Identity @@ -452,26 +466,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -## EXAMPLES - -### Example 1 - - -```powershell -Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" - -``` - -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 2 - - -```powershell -Set-owaMailboxPolicy -Identity " -``` - -This example sets the allowed organizational accounts to allow @microsoft.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. - ### -AllowOfflineOn > Applicable: Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Server SE, Exchange Online From 379ff9a0e7d121c79af3752919b921cff3a3f1cf Mon Sep 17 00:00:00 2001 From: Chris Davis Date: Mon, 8 Dec 2025 15:50:32 -0800 Subject: [PATCH 4/4] Update Set-OwaMailboxPolicy.md --- .../exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md b/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md index 6eb27a566a..4eae5f7737 100644 --- a/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md +++ b/exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md @@ -199,17 +199,17 @@ This example disables Outlook UserVoice for the default mailbox policy in Micros ### Example 5 ```powershell -Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" - +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 ```powershell -Set-OwaMailboxPolicy -Identity " +Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" -AllowedOrganizationAccountDomains "fabrikam.com","contoso.com" ``` -This example sets the allowed organizational accounts to allow @microsoft.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. +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. ## PARAMETERS