Set-CsSite
Modifies the properties for any of your Skype for Business Server sites. Sites represent a collection of Skype for Business Server pools and are typically designed around geographic regions. Skype for Business Server includes two types of sites: data center sites and remote sites (branch office). This cmdlet was introduced in Lync Server 2010.
Syntax
Default (Default)
Set-CsSite
[[-Identity] <XdsGlobalRelativeIdentity>]
[-Description <String>]
[-DisplayName <String>]
[-FederationRoute <String>]
[-WhatIf]
[-Confirm]
[-Force]
[-DefaultPersistentChatPool <String>]
[-XmppFederationRoute <String>]
[<CommonParameters>]
Description
Lync Server 2010 introduced a new concept to the topology: sites. Sites (which should not be confused with Active Directory sites or Exchange sites) are a collection of Skype for Business 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 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 also play a key role in Skype for Business Server management: many policies and settings can be configured at the site scope, making it easy to do such things as apply one set of dial plans to users in Redmond and a different set of dial plans to users in Dublin.
Sites are created by using Topology Builder and any changes to the site infrastructure (for example, adding new pools) must also be made by using Topology Builder.
However, you can use the Set-CsSite
cmdlet to change the display name, the description and the federation route of any site in your organization.
Examples
Example 1
Set-CsSite -Identity Redmond -Description "Full-time employees in Redmond, WA."
The command shown in Example 1 modifies the Description property for the Redmond site (-Identity Redmond).
Example 2
Set-CsSite -Identity Redmond -DisplayName "US Headquarters"
Example 2 changes the display name for the Redmond site to "US Headquarters".
Example 3
Get-CsSite | Where-Object {$_.Description -eq $Null} | ForEach-Object {Set-CsSite $_.Identity -Description "Litwareinc.com"}
The command shown in Example 3 locates all the sites that do not have a Description and then assigns each of those sites the generic description "Litwareinc.com." To do this, the command first calls the Get-CsSite
cmdlet without any parameters in order to return a collection of all the Skype for Business Server sites.
The returned collection is then piped to the Where-Object
cmdlet, which picks out only those sites where the Description property is equal to (-eq) a null value ($Null).
These sites are then piped to the ForEach-Object
cmdlet.
This cmdlet takes each item in the collection and uses the Set-CsSite
cmdlet to modify the value of the Description property.
Parameters
-Confirm
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Prompts you for confirmation before executing the command.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultPersistentChatPool
Applicable: Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Fully qualified domain name of the default Persistent Chat pool for the site.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Description
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Enables administrators to add additional information to a site object. For example, the Description might include contact information for the site.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisplayName
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Friendly name for the site. For example:
-DisplayName "North America and South America"
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FederationRoute
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Service location of the Edge Server used to provide a bridge between your internal network and the Internet. For example:
-FederationRoute "EdgeServer:atl-edge-001.litwareinc.com"
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Suppresses any confirmation prompts or non-fatal error messages that might occur when you run the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Identity
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Name of the site to be modified; for example:
-Identity "Redmond"
Do not use the format "site:Redmond" when specifying the identity.
Parameter properties
Type: | XdsGlobalRelativeIdentity |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Describes what would happen if you executed the command without actually executing the command.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-XmppFederationRoute
Applicable: Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
Service Identity of the Edge Server used for XMPP (Extensible Messaging and Presence Protocol) federation. For example:
-XmppFederationRoute EdgeServer:atl-xmpp-001.litwareinc.com
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
The Set-CsSite
cmdlet does not accept pipelined input.
Outputs
None
The Set-CsSite
cmdlet does not return any objects or values.
Instead, the cmdlet modifies instances of the Microsoft.Rtc.Management.Deploy.Internal.Site+CentralSite object.