Topic Last Modified: 2013-03-07

Returns information about the pools used in your deployment of Lync Server. Pools are a collection of computers in a site that all run the same set of Lync Server services. This cmdlet was introduced in Lync Server 2010.

Syntax

Get-CsPool [-Identity <XdsGlobalRelativeIdentity>] <COMMON PARAMETERS>
Get-CsPool [-Filter <String>] <COMMON PARAMETERS>
COMMON PARAMETERS: [-Site <String>]

Examples

EXAMPLE 1

Example 1 returns all the pools found in your deployment of Lync Server.

Copy Code
Get-CsPool

EXAMPLE 2

Example 2 displays detailed information about the computers found in each of your pools. This is done by calling the Get-CsPool cmdlet, and then piping the returned data to the Select-Object cmdlet. The ExpandProperty parameter is then used to "expand" the value of the Computers property. The Computers property is an array of objects representing each computer in the pool. When you expand the Computers property you get back detailed information about each of these computers.

Copy Code
Get-CsPool | Select-Object -ExpandProperty Computers

EXAMPLE 3

In Example 3, the Identity parameter is used to restrict the returned data to the pool that has the Identity atl-cs-001.litwareinc.com.

Copy Code
Get-CsPool -Identity atl-cs-001.litwareinc.com

EXAMPLE 4

Example 4 returns all the pools found in the Redmond site. To do this, the command uses the Site parameter; the parameter value "Redmond" limits the returned data to pools where the Site property is equal to Redmond.

Copy Code
Get-CsPool -Site "Redmond"

EXAMPLE 5

The command shown in Example 5 returns a collection of all the pools that do not have any Lync Server services installed. To carry out this task, the command first calls the Get-CsPool cmdlet without any parameters; that returns a collection of all the pools currently in use in the organization. This collection is then piped to the Where-Object cmdlet, which picks out all the pools where the Services.Count property is equal to 0. If the Count equals 0, that means that there are no Lync Server services configured for that pool.

Copy Code
Get-CsPool | Where-Object {$_.Services.Count -eq 0}

Detailed Description

In Lync Server, a pool is one or more computers in the same site that run the same set of services. For example, if you have one server running the Mediation Server service in the Redmond site, then you would have a Mediation Server pool consisting of that one computer. If you have two computers running Mediation Server in the Redmond site, then you would have a Mediation Server pool consisting of two computers. The number of pools used in your organization depends on the number of servers you have and the different services run by those servers.

The Get-CsPool cmdlet enables you to retrieve information about each pool in use in your organization, including information about the services running on each of those pools.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsPool cmdlet locally: RTCUniversalUserAdmins, RTCUniversalServerAdmins, RTCUniversalReadOnlyAdmins. 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-CsPool"}

Parameters

Parameter Required Type Description

Filter

Optional

System.String

Enables you to use wildcards when specifying the Identity of the pool (or pools) to be returned. For example, this syntax returns all the pools that have an Identity that ends with the string value ".fabrikam.com": -Filter "*.fabrikam.com".

Note that you cannot use both the Filter and the Identity parameters in the same command.

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsGlobalRelativeIdentity

Fully qualified domain name (FQDN) of the pool to be returned. For example: -Identity atl-cs-001.litwareinc.com.

If this parameter is not present, then all the pools in your organization will be returned.

Site

Optional

System.String

Returns all the pools found on the specified site. The site in question should be referenced using the site’s DisplayName (for example, Redmond) rather than the site Identity (for example, site:Redmond). For example: -Site "Redmond". You can retrieve the display names for your sites by running this command:

Get-CsSite | Select-Object Identity, DisplayName

Input Types

None. The Get-CsPool cmdlet does not accept pipelined input.

Return Types

The Get-CsPool cmdlet returns instances of the Microsoft.Rtc.Management.Deploy.Internal.Cluster object.

See Also