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

Modifies an existing instant message filter configuration. Instant message filter settings are used to prevent users from sending instant messages that contain live (clickable) hyperlinks.

Syntax

Set-CsImFilterConfiguration [-Identity <XdsIdentity>] [-Action <Allow | Block | Warn>] [-AllowMessage <String>] [-BlockFileExtension <$true | $false>] [-Confirm [<SwitchParameter>]] [-Enabled <$true | $false>] [-Force <SwitchParameter>] [-IgnoreLocal <$true | $false>] [-Prefixes <PSListModifier>] [-WarnMessage <String>] [-WhatIf [<SwitchParameter>]]
Set-CsImFilterConfiguration [-Action <Allow | Block | Warn>] [-AllowMessage <String>] [-BlockFileExtension <$true | $false>] [-Confirm [<SwitchParameter>]] [-Enabled <$true | $false>] [-Force <SwitchParameter>] [-IgnoreLocal <$true | $false>] [-Instance <PSObject>] [-Prefixes <PSListModifier>] [-WarnMessage <String>] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

Identity

Optional

String

The unique identifier of the IM filter configuration settings you want to modify. This value will either be global or site:<site name>, where <site name> is the site to which the configuration applies, such as site:Redmond.

Instance

Optional

ImFilterConfiguration

Allows you to pass a reference to an object to the cmdlet rather than set individual parameter values. This cmdlet accepts an object of type Microsoft.Rtc.Management.WritableConfig.Settings.ImFilter.ImFilterConfiguration, which can be retrieved by calling the Get-CsImFilterConfiguration cmdlet.

Action

Optional

UrlFilterAction

The value of this parameter determines the action that will be taken when a hyperlink is included in an instant message:

Allow - Hyperlinks are prefixed with an underscore so that the links are no longer active. Optionally, a notification message will be inserted at the beginning of each instant message containing hyperlinks if a message is specified in the AllowMessage property.

Block - Delivery of messages containing active hyperlinks are blocked and Communications Server 2010 sends an error message to the sender.

Warn - Messages containing active hyperlinks are delivered to the receiving participants, along with a warning message that is inserted at the beginning of those messages. The warning message can be specified using the WarnMessage property. If Warn is specified and no WarnMessage is entered, IM filtering is disabled, although the settings for the BlockFileExtension property will still be honored.

AllowMessage

Optional

String

If a value is specified for this parameter, that string is inserted at the beginning of each message containing hyperlinks when the value of the Action property is set to Allow. You can use this message to notify users of things such as the potential dangers of clicking unknown links or your organization's relevant policies and requirements.

BlockFileExtension

Optional

Boolean

If this parameter is set to True, a hyperlink that contains a file path with an extension specified by the Extensions property defined in the Microsoft.Rtc.Management.WritableConfig.Settings.ImFilter.FileTransferFilterConfiguration class (retrieved by calling the Get-CsFileTransferFilterConfiguration cmdlet) is blocked and an error message is returned to the sender. If this parameter is set to False, no special check is made for file paths and extensions.

Default: True

Confirm

Optional

SwitchParameter

Prompts you for confirmation before executing the command.

Enabled

Optional

Boolean

Enables or disables this feature. If this parameter is set to True, instant messages will be scanned for hyperlinks and the rules in this configuration will be applied. If this parameter is set to False, messages will not be checked for hyperlinks.

Default: True

IgnoreLocal

Optional

Boolean

The value of this parameter controls whether filtering is performed on local Intranet URIs passed in instant messages.If this parameter is set to True, any URI that is defined in the Intranet zone of the local computer is ignored. (The local computer is the FrontEnd computer running the IM Filter application.) If this parameter is set to False, the specified filtering is applied to all hyperlinks.

Default: True

Prefixes

Optional

PSListModifier

The list of URI prefixes that will be filtered. Any hyperlink included in an instant message with a prefix matching one of the prefixes in this list will be filtered according to the specified settings.

Default: callto:, file:, ftp., ftp:, gopher:, href, http:, https:, ldap:, mailto:, news:, nntp:, sip:, sips:, tel:, telnet:, www*.

WarnMessage

Optional

String

This parameter contains the warning message that is inserted at the beginning of each instant message that contains hyperlinks when the value of the Action property is set to Warn. Typically this message would be used for such things as stating the potential dangers of clicking unknown links or referring to your organization's relevant policies and requirements.

Force

Optional

SwitchParameter

Suppresses any confirmation prompts that would otherwise be displayed before making changes.

WhatIf

Optional

SwitchParameter

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

Detailed Description

When sending instant messages, users can embed a URI within the text of that message to refer other participants in the conversation to a particular Web site or share. Microsoft Communications Server 2010 can be configured so that hyperlinks with certain prefixes are blocked or are not active. (In other words, the participants can’t simply click on the link and be taken to whatever the URI refers to; they must copy and paste the link manually into a browser.)

The Set-CsImFilterConfiguration cmdlet allows you to modify a list of URI prefixes that will be filtered - as well as enable and disable filtering altogether - either globally or within a specific site. With this cmdlet you can also update various messages associated with providing warning messages to users.

Return Types

Set-CsImFilterConfiguration does not return a value or object. Instead, the cmdlet configures instances of the Microsoft.Rtc.Management.WritableConfig.Settings.ImFilter.ImFilterConfiguration object.

Examples

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

Copy Code
Set-CsImFilterConfiguration -Identity site:Redmond -Enabled $False

The command shown in this example disables URI filtering for the instant message filter settings with the Identity site:Redmond. To carry out this task, the Enabled parameter is specified in the call to the Set-CsImFilterConfiguration cmdlet with a value of $False.

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

Copy Code
$x = Get-CsImFilterConfiguration -Identity site:Redmond
$x.Prefixes.Add("urn:")
Set-CsImFilterConfiguration -Instance $x

The preceding set of commands adds a new URI prefix (urn:) to the list of prefixes prohibited by the instant message filter configuration for site:Redmond. To add the new prefix, the Get-CsImFilterConfiguration cmdlet is used to retrieve the configuration for site:Redmond; the returned object representing that configuration is stored in a variable named $x. After the settings have been retrieved, the Add() method is called in line 2 to add urn: to the set of prefixes stored in the Prefixes property. This changes the value of the object reference $x. To change the actual configuration itself, line 3 calls the Set-CsImFilterConfiguration cmdlet, passing $x as the sole parameter value.

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

Copy Code
Set-CsImFilterConfiguration -Identity site:Redmond -Prefixes @{add="urn:"}

Example 3 performs the exact same action as Example 2, but it does it in one line. In this command the -Prefixes parameter of the Set-CsImFilterConfiguration cmdlet is used to add urn: to the list of prefixes. The add list modifier is used to add this value to the Prefixes list.

-------------------------- Example 4 --------------------------

Copy Code
Set-CsImFilterConfiguration -Identity site:Redmond -Prefixes @{remove="urn:"}

In this example the prefix urn: is removed from the list of prefixes blocked by the instant message filter configuration for site:Redmond. This example is identical to Example 3 except that rather than calling the add list modifier to add a prefix to the list, the remove modifier is called to remove a prefix.