File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -153,12 +153,18 @@ The command shown in Example 9 enables communication with people using Teams wit
153
153
154
154
### -------------------------- Example 10 -------------------------
155
155
```
156
+ $list = New-Object Collections.Generic.List[String]
157
+ $list.add("contoso.com")
158
+ $list.add("fabrikam.com")
159
+ Set-CsTenantFederationConfiguration -BlockedDomains $list
160
+
156
161
Set-CsTenantFederationConfiguration -BlockAllSubdomains $True
157
162
```
158
163
159
- Example 10 shows how you can empower BlockedDomains to also block all subdomains.
160
- Let's say you block contoso.com. Then all users from subdomain.contoso.com will also be blocked.
161
- Note: Users from subcontoso.com will not be blocked because it's a completely different domain rather than a subdomain.
164
+ Example 10 shows how you can block all subdomains of domains in BlockedDomains list.
165
+ In this example, contoso.com is on the BlockDomains list which blocks all users from contoso.com and fabrikam.com.
166
+ When the BlockAllSubdomains is enabled, all users from subdomain.contoso.com and subdomain.fabrikam.com will also be blocked.
167
+ Note: Users from subcontoso.com will not be blocked because it's a completely different domain rather than a subdomain of contoso.com.
162
168
163
169
## PARAMETERS
164
170
You can’t perform that action at this time.
0 commit comments