[This is preliminary documentation and is subject to change. Blank topics are included as placeholders.]

Modifies one or more of the domains included on the list of domains blocked for federation. By definition, your users are not allowed to use Microsoft Communications Server 2010 applications to communicate with people from the blocked domain; for example, users cannot employ Microsoft Communicator "14" to exchange instant messages with anyone with a SIP account in a domain that appears on the blocked list.

Syntax

Set-CsBlockedDomain [-Identity <XdsGlobalRelativeIdentity>] [-Comment <String>] [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
Set-CsBlockedDomain [-Comment <String>] [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-Instance <PSObject>] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

Identity

Required

String

Fully qualified domain name (e.g., fabrikam.com) of the blocked domain whose property values are being modified.

Instance

Optional

BlockedDomain object

Allows you to pass a reference to an object to the cmdlet rather than set individual parameter values.

Comment

Optional

String

Optional string value that provides additional information about the domain being modified. For example, you might add a Comment that indicates why the domain has been placed on the blocked list.

Force

Optional

Switch Parameter

Suppresses the display of any non-fatal error message that might arise when running the command.

WhatIf

Optional

Switch Parameter

Describes what would happen if you executed the command without actually executing the command.

Confirm

Optional

Switch Parameter

Prompts you for confirmation before executing the command.

Detailed Description

Federation is a means by which two organizations can set up a trust relationship that facilitates communication between the two groups. When a federation has been established, users in the two organizations can send each other instant messages, subscribe for presence notifications, and otherwise communicate with one another using SIP applications such as Communicator "14". Communications Server 2010 allows for three types of federation: 1) direct federation between your organization and another; 2) federation between your organization and a public provider; and, 3) federation between your organization and a third-party hosting provider.

Setting up direct federation with another organization involves several tasks. To begin with, you must enable your Access Edge servers to allow federation; for more information, type "Get-Help Set-CsAccessEdgeConfiguration" (without the quote marks) at the windows PowerShell prompt. In addition, the other organization must enable federation with you; federation cannot be established unless both parties agree to the relationship.

Equally important, you must manage two federation-related lists: the allowed list and the blocked list. The allowed list represents the organizations you have chosen to federate with; if a domain appears on the allowed list then (depending on your configuration settings) your users will be able to exchange instant messages and presence information with users who have accounts in that federated domain. Conversely, the blocked list represents domains that you are expressly forbidden from federating with: messages sent from a blocked domain will automatically be rejected by Communications Server 2010.

One property for domains on the blocked list is the Comment property; this property can be used to store additional information about the domain (for example, why the domain is being blocked; when the domain can be removed from the blocked list; who to contact if you would like to have the domain removed from the blocked list; etc.). If you need to change the Comment property for any domain on the list of blocked domains, use the Set-CsBlockedDomain cmdlet.

Return Types

Set-CsBlockedDomain does not return a value or object. Instead, the cmdlet configures instances of the Microsoft.Rtc.Management.WriteableConfig.Settings.Edge.BlockedDomain object.

Examples

-------------------------- Example 1 ------------------------

Copy Code
Set-CsBlockedDomain -Identity fabrikam.com -Comment "Block this domain pending legal review."

The command shown in Example 1 modifies the Comment for the blocked domain with the Identity "fabrikam.com". In this example, the -Comment parameter is included along with the parameter value "Block this domain pending legal review."

-------------------------- Example 2 ------------------------

Copy Code
Get-CsBlockedDomain | Set-CsBlockedDomain -Comment "Block this domain pending legal review."

In the preceding example, the Comment property is updated for all the domains included on the blocked domains list. To do this the command first calls Get-CsBlockedDomain, which returns a collection of all the domains currently on the blocked domain list. That collection is then piped to Set-CsBlockedDomain, which proceeds to modify the Comment property for each domain in the collection.

-------------------------- Example 3 ------------------------

Copy Code
Get-CsBlockedDomain | Where-Object {$_.Comment -eq $Null} | Set-CsBlockedDomain -Comment "Block this domain pending legal review."

In Example 3, a new comment ("Block this domain pending legal review.") is added to each domain on the blocked list that doesn’t already have a value for the Comment property. To carry out this task, the command first uses Get-CsBlockedDomain to return a collection of all the domains currently on the blocked list. This collection is then piped to the Where-Object cmdlet, which picks out only those domains where the Comment property is equal to (-eq) a null value ($Null). The filtered collection is then piped to Set-CsBlockedDomain, which writes the same comment to the Comment property of each domain in the filtered collection.