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

Returns information about the sites created as part of your Microsoft Communications Server infrastructure. Sites represent a collection of Microsoft Communications Server clusters and are typically designed around geographic regions. Microsoft Communications Server includes two types of sites: data center sites and remote sites (branch office).

Syntax

Get-CsSite [-Identity <XdsGlobalRelativeIdentity>]
Get-CsSite [-Filter <String>]

Parameters

Parameter Required Type Description

Identity

Optional

SiteId

Name of the site to be returned. Note that you should specify just the site name; for example: -Identity "Redmond". Do not use the format "site:Redmond" when specifying the site Identity.

Filter

Optional

String

Enables you to use wildcards when specifying the Identity of the site (or sites) to be returned. For example, this syntax returns all the pools that have an Identity that include the string value "Dublin": -Filter "*Dublin*".

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

Detailed Description

Microsoft Communications Server “14” introduces a new concept to the Communications Server topology: sites. Sites (which should not be confused with Active Directory sites or Microsoft Exchange Server sites) are a collection of Communications Server pools and servers that are typically organized according to geography and network bandwidth. For example, if all your computers in Redmond are located on the same local area network with high-speed, low-latency connections, you might designate a Redmond site that encompasses all those computers. If your computers in Dublin are located on their own local area network, and share high-speed, low-latency connections, then you might create a separate Dublin site as well. Sites play a key role in Communications Server management: most policies and settings can be configured at the site scope, making it easy to, say, apply one set of dial plans to users in Redmond and a completely different set of dial plans to users in Dublin.

The Get-CsSite cmdlet enables you to return information about all the sites in your organization, including information about the pools that make up each of those sites.

Return Types

Get-CsSite returns instances of the Microsoft.Rtc.Management.Deploy.Internal.Site+CentralSite object.

Examples

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

Copy Code
Get-CsSite

Example 1 retrieves information for all your Microsoft Communications Server sites.

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

Copy Code
Get-CsSite -Identity "Redmond"

In Example 2, information is returned for a single site: the site with the Identity Redmond.

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

Copy Code
Get-CsSite | Where-Object {$_.SiteType -eq "CentralSite"}

The command shown in Example 3 returns information for your central site. To carry out this task, the command first calls Get-CsSite in order to return a collection of all the sites configured for use in your organization. This collection is then piped to the Where-Object, which picks out the one site where the SiteType property is equal to (-eq) CentralSite.

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

Copy Code
Get-CsSite -Identity "Redmond" | Select-Object -ExpandProperty Pools

The preceding command displays the list of pools found in the Redmond site. To do this, the command first retrieves complete information for the Redmond site, then pipes that data to the Select-Object cmdlet. In turn, Select-Object uses its -ExpandProperty to "expand" the value of the Pools property. Expanding a property value means that all the values stored in that property will be displayed onscreen in easy-to-read fashion.