Dela via


Get-CsWebServiceConfiguration

 

Topic Last Modified: 2012-03-23

Returns information about all the Web Services configuration settings in use in your organization.

Syntax

Get-CsWebServiceConfiguration [-Identity <XdsIdentity>] [-LocalStore <SwitchParameter>]

Get-CsWebServiceConfiguration [-Filter <String>] [-LocalStore <SwitchParameter>]

Detailed Description

Many Microsoft Lync Server 2010 components are web-based: these components either use web services or webpages to carry out their tasks. For example, users employ a web service when searching for new contacts in the Address Book or when using group expansion to view the individual members of a distribution group. Likewise, components ranging from dial-in conferencing to Microsoft Lync Server 2010 Control Panel use webpages as the interface between Lync Server 2010 and users.

The CsWebServiceConfiguration cmdlets enable administrators to manage Web Services configuration settings throughout the organization; this includes managing group expansion, certificate settings, and allowed authentication methods. Because you can configure different settings at the global, site, and service scope (albeit for the only the Web Services service), you can customize Web Services capabilities for different users and different locations.

The Get-CsWebServiceConfiguration cmdlet enables you to return detailed information about the Web Services configuration settings currently in use in your organization.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsWebServiceConfiguration cmdlet locally: RTCUniversalUserAdmins, RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Get-CsWebServiceConfiguration"}

Parameters

Parameter Required Type Description

Identity

Optional

Xds Identity

Unique identifier for the Web Services configuration settings to be returned. To return the global settings, use this syntax: -Identity global. To return settings configured at the site scope, use syntax similar to this: -Identity "site:Redmond." Service-scope settings can be returned using syntax like this: -Identity "service:WebServer:atl-cs-001.litwareinc.com".

You cannot use both the Filter and the Identity parameters in the same command. If you do not specify either parameter, Get-CsWebServiceConfiguration will return all the Web Services settings collections currently in use in your organization.

Filter

Optional

String

Enables you to use wildcards when specifying the Web Services configuration settings collection (or collections) to be returned. For example, this syntax returns all the settings configured at the site scope: -Filter "site:*".

You cannot use both the Filter and the Identity parameters in the same command.

LocalStore

Optional

Switch Parameter

Retrieves the Web Services configuration data from the local replica of the Central Management store rather than from the Central Management store itself.

Input Types

None. Get-CsWebServiceConfiguration does not accept pipelined input.

Return Types

Get-CsWebServiceConfiguration returns instances of the Microsoft.Rtc.Management.WritableConfig.Web.WebServiceSettings object.

Example

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

Get-CsWebServiceConfiguration

The preceding command returns information about all the Web Services configuration settings currently in use in the organization.

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

Get-CsWebServiceConfiguration -Identity site:Redmond

The command shown in Example 2 returns information about the Web Services configuration settings that have the Identity site:Redmond.

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

Get-CsWebServiceConfiguration -Filter "site:*"

Example 3 returns all the Web Services configuration settings that have been assigned at the site scope. To do this, the Filter parameter is included when calling Get-CsWebServiceConfiguration; the filter value "site:*" ensures that only those settings that have an Identity that begins with the string value "site:" are returned.

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

Get-CsWebServiceConfiguration | Where-Object {$_.UsePinAuth -eq $False}

In Example 4, the command returns all the Web Services configuration settings that do not allow personal identification number (PIN) authentication. This is done by first calling Get-CsWebServiceConfiguration to return all the Web Services configuration settings currently in use. This collection is then piped to the Where-Object cmdlet, which picks out only those settings where the UsePinAuth property is equal to False.

-------------------------- Example 5 ------------------------

Get-CsWebServiceConfiguration | Where-Object {$_.MaxGroupSizeToExpand -gt 100}

The preceding command returns all the Web Services configuration settings where the maximum group expansion size is greater than 100. To do this, the command first uses Get-CsWebServiceConfiguration to return all the Web Services configuration settings currently in use. This information is then piped to the Where-Object cmdlet, which selects only those settings where the MaxGroupSizeToExpand property is greater than 100.