Returns the file transfer filter settings configured in your organization. These settings are used to block a user’s ability to transfer certain types of files (for example, files with a .vbs or .ps1 file extension) using a Microsoft Communications Server 2010 client.
Syntax
Get-CsFileTransferFilterConfiguration [-Identity <XdsIdentity>] [-LocalStore <SwitchParameter>] |
Get-CsFileTransferFilterConfiguration [-Filter <String>] [-LocalStore <SwitchParameter>] |
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Optional |
XdsIdentity |
Unique identifier for the collection of file transfer settings you want to retrieve. To refer to the global settings, use this syntax: -Identity global. To refer to settings configured at the site scope use syntax similar to this: -Identity site:Redmond. Note that you cannot use wildcard values when specifying an Identity. If you want to use wildcards, use the -Filter parameter instead. |
Filter |
Optional |
String |
Enables you to use wildcards when specifying the collection (or collections) of file transfer settings to be returned. For example, to return all the file transfer settings that have been configured at the site scope use this syntax: -Filter "site:*". By design, file transfer settings that have an Identity (the only property you can filter on) that begins with the string value "site:" are settings that were configured at the site scope. |
LocalStore |
Optional |
Switch Parameter |
Retrieves the file transfer filter configuration from the local replica of the Central Management database, rather than the Central Management database itself. |
Detailed Description
When sending instant messages, users can attach and send files to the other participants in the conversation. Communications Server 2010 can be configured so that files with certain extensions - typically extensions of file types that could potentially prove harmful - are not allowed to be sent using the Communications Server client.
The Get-CsFileTransferFilterConfiguration cmdlet provides a way for you to retrieve the settings for a particular collection of settings (these settings can be configured at the global scope or at the site scope). File transfer filter settings include the list of file extensions that are blocked from transfers, to what degree filtering is enabled (all file transfers are blocked or only files with the specified extensions), and whether file transfer filtering is enabled.
Return Types
Get-CsFileTransferFilterConfiguration cmdlet returns an instance of the Microsoft.Rtc.Management.WritableConfig.Settings.ImFilter.FileTransferFilterConfiguration object.
Examples
-------------------------- Example 1 --------------------------
Copy Code | |
---|---|
Get-CsFileTransferFilterConfiguration |
The command shown in Example 1 returns a collection of all the file transfer filter settings configured for use in your organization. This is the default behavior any time you call Get-CsFileTransferFilterConfiguration without any additional parameters.
-------------------------- Example 2 --------------------------
Copy Code | |
---|---|
Get-CsFileTransferFilterConfiguration -Identity site:Redmond |
The preceding example returns a single collection of file transfer filter settings: the collection that has the Identity site:Redmond. Because identities must be unique, this command can never return more than one collection of settings.
-------------------------- Example 3 --------------------------
Copy Code | |
---|---|
Get-CsFileTransferFilterConfiguration -Filter site:* |
Example 3 uses the -Filter parameter to return a collection of all the file transfer filter settings that have been configured at the site level. The filter value "site:*" instructs Get-CsFileTransferFilterConfiguration to return only those collections that have an Identity that begins with the string value "site:".
-------------------------- Example 4 --------------------------
Copy Code | |
---|---|
Get-CsFileTransferFilterConfiguration | Where-Object {$_.Extensions -contains ".xls"} |
The command shown in Example 4 returns only those file transfer filter settings that include .xls in their list of prohibited file extensions. To do this, Get-CsFileTransferFilterConfiguration is first used to return a collection of all the policies configured for use in your organization. That collection is then piped to the Where-Object cmdlet, which applies a filter that restricts the returned data to those collections where the Extensions property includes (-contains) the string value ".xls".
-------------------------- Example 5 --------------------------
Copy Code | |
---|---|
Get-CsFileTransferFilterConfiguration | Where-Object {$_.Enabled -eq $False} |
The preceding command returns all the collections of file transfer settings that are currently disabled. To accomplish this task, Get-CsFileTransferFilterConfiguration is used to return a collection of all the policies configured for use in your organization. This collection is then piped to the Where-Object cmdlet, which, in turn, applies selects only those collections where the Enabled property is equal to (-eq) True ($True).
-------------------------- Example 6 --------------------------
Copy Code | |
---|---|
Get-CsFileTransferFilterConfiguration -Identity Global | Select-Object -ExpandProperty Extensions |
Example 6 shows a complete list of the file extensions prohibited by the global file transfer filter settings. The command begins with a call to the Get-CsFileTransferFilterConfiguration cmdlet, specifying the Global collection of settings. The returned information is then piped to the Select-Object cmdlet, which uses the -ExpandProperty parameter to "expand" the value of the Extensions property. That results in the complete list of file extensions being displayed onscreen, one file extension per line.