管理聊天室Manage rooms

 

上次修改的主题: 2013-02-21Topic Last Modified: 2013-02-21

创建新的持久聊天服务器聊天室To create a new Persistent Chat Server room

New-CsPersistentChatRoom -Name Foo1 -PersistentChatPoolFqdn client.contoso.com -Category client.contoso.com\Foo [other parameters]

重要

如果满足下列条件之一,则不需要 -PersistentChatPoolFqdn:-PersistentChatPoolFqdn is not needed if one of the following is true:

  • 只有一个持久聊天服务器池。There is only one Persistent Chat Server pool.

  • 您为类别提供了一个池 FQDN。You provide a pool FQDN to the category.

  • 您提供了一个池 Fqdn 以添加聊天室。You provide a pool FQDN to adding the room.

对现有持久聊天服务器聊天室进行更改To make changes to an existing Persistent Chat Server room

Set-CsPersistentChatRoom -Identity testCat -Members @{Add="sip:user1@contoso.com", "CN=container,DC=contoso,DC=com"}
Set-CsPersistentChatRoom -Identity testCat -Managers @{Add="sip:user2@contoso.com"}
Set-CsPersistentChatRoom -Identity testCat -Presenters @{Add="sip:user1@contoso.com"}

Windows PowerShell:可以同时设置成员、管理者和演示者。Windows PowerShell: Members, Managers and Presenters can be set simultaneously. 他们都应为主机类别的 AllowedMembers 减去 DeniedMembers 所得到的子集的一部分。They all should be the subset of AllowedMembers minus DeniedMembers of the host Category. type=normal 的聊天室无法包含演示者。A room that is type=normal cannot include Presenters.

创建、获取、设置、清除或删除聊天室Create, Get, Set, Clear, or Remove a Room

创建新聊天室To create a new room

New-CsPersistentChatRoom -Name <String> [-PersistentChatPoolFqdn <String>]-Category <String> [-Description <String>] [-Disabled <Switch Parameter>] [-Type <Normal | Auditorium>] [-AddIn <String>] [-Privacy <ChatRoomPrivacy> {Open | Closed | Secret}] [-Invitations <Switch Parameter>]

设置聊天室To set a room

Set-CsPersistentChatRoom -Identity <String> [-Name <String>] [-Category <String>] [-Description <String>] [-Disabled <boolean>] [-Type <Normal | Auditorium>] [-AddIn <String>] [-Privacy <ChatRoomPrivacy> {Open | Closed | Secret}] [-Invitations <Enum>] [-Members <PSListModifier<String>>] [-Managers <PSListModifier<String>>] [-Presenters <PSListModifier<String>>] [-Force < Switch Parameter >] [-Confirm <Switch Parameter>][-WhatIf <Switch Parameter>]

获取聊天室To get a room

Get-CsPersistentChatRoom -Identity <String>

or

Get-CsPersistentChatRoom -filter <String> [-PersistentChatPoolFqdn <String>] [-SearchDescription] [-Member <String>] [-Manager <string>] [-Category <string>] [-Addin <string>] [-Disabled <bool>] [-Privacy <ChatRoomPrivacy> {Open | Closed | Secret}] [-Type <ChatRoomType> {Normal | Auditorium}] [-Invitations <ChatRoomInvitations> {False | Inherit}] [-ChatContentExceedsMB <int>] [-ResultSize <int>]

其中 –filter 仅支持名称和说明,并可帮助您查找其名称/说明与关键字字符串匹配的聊天室。where –filter supports only Name and Description and helps you find rooms whose Name/Description matches the keyword string. PoolFqdn 在给定的持久聊天服务器池中进行搜索。PoolFqdn searches in a given Persistent Chat Server pool.

清除聊天室并清除聊天室中的消息To clear a room and clear messages from a room

Clear-CsPersistentChatRoom [-Identity] <string> -EndDate <DateTime> [-WhatIf] [-Confirm]  [<CommonParameters>]

or

Clear-CsPersistentChatRoom [-Instance] <ChatRoomObject> -EndDate <DateTime> [-WhatIf] [-Confirm] [<CommonParameters>]

删除聊天室To remove a room

Remove-CsPersistentChatRoom [-Identity] <string> [-Force] [-WhatIf] [-Confirm]  [<CommonParameters>]

or

Remove-CsPersistentChatRoom [-Instance] <ChatRoomObject> [-Force] [-WhatIf] [-Confirm]  [<CommonParameters>]