Edit

Share via


Set-CsPersistentChatActiveServer

Manages the list of active Persistent Chat servers. An active server is Persistent Chat server (in a specified Persistent Chat service pool) that is fully operational and can accept new client connections. Servers in the pool that have not been marked as active servers might be operational, but are currently unable to accept new client connections. This cmdlet was introduced in Lync Server 2013.

Syntax

Explicit

Set-CsPersistentChatActiveServer
    [[-Identity] <XdsGlobalRelativeIdentity>]
    -ActiveServers <System.Management.Automation.PSListModifier`1[Microsoft.Rtc.Management.Deploy.Fqdn]>
    [-Confirm]
    [-Force]
    [-WhatIf]
    [<CommonParameters>]

Swap

Set-CsPersistentChatActiveServer
    [[-Identity] <XdsGlobalRelativeIdentity>]
    [-Swap]
    [-Confirm]
    [-Force]
    [-WhatIf]
    [<CommonParameters>]

Description

The Set-CsPersistentChatActiveServer cmdlet allows administrators to essentially enable or disable the Persistent Chat service on one or more servers in a Persistent Chat pool. Servers that appear on the active servers list are able to accept new client connections. Servers that do not appear on the list are not able to accept new client connections. (However, the server will continue to any client connections that were made before the server was removed from the list.) To enable the Persistent Chat service on a Persistent Chat server, add that server to the active server list. To disable the service, remove the server from the active server list.

To enable/disable the Persistent Chat service on all the servers in a pool, use the Set-CsPersistentChatState cmdlet.

Skype for Business Server Control Panel: The functions carried out by the Set-CsPersistentChatActiveServer cmdlet are not available in the Skype for Business Server Control Panel.

Examples

Example 1

Set-CsPersistentChatActiveServer -Identity "PChatServerCollection" -ActiveServers @{Add="atl-gc-001.litwareinc.com"}

The command shown in Example 1 adds the server atl-gc-001.litwareinc.com to the collection of active Persistent Chat Servers.

First, determine the identity of your server collection by running the Get-CsService cmdlet, which will return the identity of your Persistent Chat collection :

Get-CsService -PersistentChatServer

The cmdlet will return something similar to

Identity : PersistentChatServer:client.vdomain.com

To add the server to the Then run the following cmdlet to add the server, using the :

Set-CsPersistentChatActiveServer -Identity "PChatServerCollection" -ActiveServers @{Add="atl-gc-001.litwareinc.com"}

Example 2

Set-CsPersistentChatActiveServer -Identity "PChatServerCollection" -ActiveServers @{Remove="atl-gc-001.litwareinc.com"}

Example 2 removes the server atl-gc-001.litwareinc.com from the collection of active Persistent Chat servers.

Example 3

Set-CsPersistentChatActiveServer -Identity "PChatServerCollection" -ActiveServers $Null

The command shown in Example 3 removes all the active Persistent Chat servers. Removing all the active servers is typically done in a failback or failover scenario.

Parameters

-ActiveServers

Applicable: Lync Server 2013, Skype for Business Server 2015

Collection of fully-qualified domain names representing the active Persistent Chat servers.

Parameter properties

Type:

System.Management.Automation.PSListModifier`1[Microsoft.Rtc.Management.Deploy.Fqdn]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Explicit
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Applicable: Lync Server 2013, Skype for Business Server 2015

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

-Force

Applicable: Lync Server 2013, Skype for Business Server 2015

Suppresses the display of any non-fatal error message that might arise when running the command.

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 2013, Skype for Business Server 2015

Unique Identity for the collection of active servers. Note that you can only have a single collection of Persistent Chat servers.

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

-Swap

Applicable: Lync Server 2013, Skype for Business Server 2015

When specified, swaps the active state for all the Persistent Chat servers in the specified pool: active servers will be marked as inactive, and inactive servers will be marked as active.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Swap
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Applicable: Lync Server 2013, Skype for Business Server 2015

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

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-CsPersistentChatActiveServer cmdlet does not accept pipelined input.

Outputs

None