Skip to content

Commit 72dd407

Browse files
authored
Merge pull request #13277 from colinmorris1992/docs-editor/Set-OwaMailboxPolicy-1765232686
Update Set-OwaMailboxPolicy.md
2 parents 70382e0 + e829861 commit 72dd407

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

exchange/exchange-ps/ExchangePowerShell/Set-OwaMailboxPolicy.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,20 @@ Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -UserVoiceEnabled $false
197197

198198
This example disables Outlook UserVoice for the default mailbox policy in Microsoft 365.
199199

200+
### Example 5
201+
```powershell
202+
Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" -AllowedOrganizationAccountDomains $null
203+
```
204+
205+
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.
206+
207+
### Example 6
208+
```powershell
209+
Set-OwaMailboxPolicy -Identity "Default-OwaMailboxPolicy" -AllowedOrganizationAccountDomains "fabrikam.com","contoso.com"
210+
```
211+
212+
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.
213+
200214
## PARAMETERS
201215

202216
### -Identity

0 commit comments

Comments
 (0)