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

Creates a new set of instant message filter configuration settings. Instant message filter settings are used to prevent users from sending instant messages that contain active hyperlinks.

Syntax

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

Parameters

Parameter Required Type Description

Identity

Required

XdsIdentity

A unique identifier specifying the scope of the IM filter configuration. Global settings exist by default and so cannot be re-created with the New-CsImFilterConfiguration cmdlet, but you can create site-level settings by specifying an Identity of site:<site name>, where <site name> is the name of the site to which the settings will be applied.

Full Data Type: Microsoft.Rtc.Management.Xds.XdsIdentity

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 Microsoft 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.

Default: Allow, unless a message contains more than 1,000 URLs, in which case the default is Block.

Full Data Type: Microsoft.Rtc.Management.WritableConfig.Settings.ImFilter.UrlFilterAction

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 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

InMemory

Optional

SwitchParameter

Creates an object reference without actually committing the object as a permanent change. If you assign the output of this cmdlet called with this parameter to a variable, you can make changes to the properties of the object reference and then commit those changes by calling this cmdlet’s matching Set- cmdlet.

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. Communications Server 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 New-CsImFilterConfiguration cmdlet allows you to define a list of URI prefixes that will be filtered - as well as enable and disable filtering altogether - within a specific site. Calling New-CsImFilterConfiguration with only an Identity specified will create a new configuration with that identity, populating the Prefixes list for that site with a set of default prefixes that will be filtered.

Available scopes: Global, Site

Return Types

Creates an object of type Microsoft.Rtc.Management.WritableConfig.Settings.ImFilter.ImFilterConfiguration.

Examples

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

Copy Code
New-CsImFilterConfiguration -Identity site:Redmond

In the command shown above, New-CsImFilterConfiguration is used to create a new instant message filter configuration with the Identity site:Redmond. (Because no additional parameters were specified, these settings will be created using the default values.)

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

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

In this command, New-CsImFilterConfiguration is used to create new instant message filter settings with the Identity site:Redmond. Because the Prefixes parameter has been specified, the new configuration will contain all the default values-including the default prefixes to filter-plus two additional URI prefixes: rtsp: and urn:. We add these prefixes by using the add list modifier to add these prefixes to the default list.

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

Copy Code
New-CsImFilterConfiguration -Identity site:Redmond -Prefixes @{replace="rtsp:","urn:"}

In this command, New-CsFileTransferFilterConfiguration is used to create new instant message filter settings with the Identity site:Redmond. This example is similar to Example 2 except that the replace list modifier has been used instead of the add list modifier. This means that all the default URI prefixes will be replaced by these two prefixes (rtsp: and urn:). Therefore, only URIs with prefixes of rtsp: or urn: will be filtered within instant messages for the site Redmond.