Export (0) Print
Expand All
Expand Minimize

Remove-CsPersistentChatCategory

Lync Server 2013
 

Topic Last Modified: 2013-03-07

Removes an existing Persistent Chat category. A Persistent Chat category represents a collection of Persistent Chat chat rooms, and each chat room must be associated with a category. This cmdlet was introduced in Lync Server 2013. Note that categories cannot be removed unless they are empty (that is, all the rooms within that category must be removed before you can remove the category).

Remove-CsPersistentChatCategory -Identity <String> <COMMON PARAMETERS>
Remove-CsPersistentChatCategory -Instance <Category> <COMMON PARAMETERS>
COMMON PARAMETERS: [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

The command shown in Example 1 removes the Persistent Chat category that has the Identity "atl-cs-001.litwareinc.com\helpdesk".

Remove-CsPersistentChatCategory -Identity "atl-cs-001.litwareinc.com\helpdesk"

In Example 2, all the Persistent Chat categories currently in use in the organization are removed. To do this, the command first uses the Get-CsPersistentChatCategory cmdlet to retrieve a collection of all the Persistent Chat categories. This collection is piped to the Remove-CsPersistentChatCategory cmdlet, which then deletes each category in the collection.

Get-CsPersistentChatCategory | Remove-CsPersistentChatCategory

The Persistent Chat service (which replaces the Group Chat service used in Microsoft Lync Server 2010) provides organizations with messaging and collaboration capabilities similar to those found in Internet discussion forums: users can exchange messages in real-time, yet can also revisit and restart those conversations at any time. Conversations can be based around specific topics, and these conversations can be made available to everyone or to only a selected set of users. Likewise, individual chat rooms can be configured so that anyone can post a message or configured so that only designated presenters can post messages.

Persistent Chat categories provide a way for administrators to organize, and manage, Persistent Chat chat rooms. Categories provide a way for administrators to group related chat rooms; for example, all chat rooms used by the finance department can be grouped in the same category. Likewise, categories provide a way for administrators to manage permissions to these rooms, dictating which users are allowed access to the rooms, which users are denied access to the rooms, and which users are allowed to create new chat rooms within the category.

Note that all chat rooms must belong to a category; you cannot create a chat room without assigning that room to a category. That means that you must create at least one category before you can add any chat rooms to your Persistent Chat implementation.

The Remove-CsPersistentChatCategory cmdlet provides a way to remove Persistent Chat categories. Keep in mind that categories cannot be removed unless they are empty. That means that all the rooms within that category must be removed before you can remove the category itself.

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 command-line interface prompt:

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

Lync Server Control Panel: To remove a Persistent Chat category using the Lync Server Control Panel, click Persistent Chat and then click Category. Select the category to be removed, click Edit and then click Delete.

 

Parameter Required Type Description

Identity

Required

System.String

Unique identifier for the Persistent Chat category to be removed. An Identity consists of the PoolFqdn plus the category Name; for example:

-Identity "atl-cs-001.litwareinc.com\helpdesk"

Instance

Required

Microsoft.Rtc.Management.Chat.Cmdlets.Category

Allows you to pass a reference to an object to the cmdlet.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Describes what would happen if you executed the command without actually executing the command.

The Remove-CsPersistentChatCategory cmdlet accepts pipelined instances of the Microsoft.Rtc.Management.PersistentChat.Cmdlets.CategoryObject object. The cmdlet will also accept string values representing the Identity of an existing Persistent Chat category.

None. Instead, the Remove-CsPersistentChatCategory cmdlet deletes existing instances of the Microsoft.Rtc.Management.PersistentChat.Cmdlets.CategoryObject object.

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft