Export (0) Print
Expand All
Expand Minimize

Export-CsPersistentChatData

Lync Server 2013
 

Topic Last Modified: 2013-08-08

Exports data from a Persistent Chat database. This cmdlet was introduced in Lync Server 2013.

Export-CsPersistentChatData [-FileName <String>] <COMMON PARAMETERS>
Export-CsPersistentChatData [-AsBytes <SwitchParameter>] <COMMON PARAMETERS>
COMMON PARAMETERS: -DBInstance <String> [-DBName <String>] [-DisableExportedNodes <SwitchParameter>] [-Level <User | Category | RoomDirectory | Content | All>] [-Report <String>] [-Scope <List>] [-StartDate <DateTime>]

The command shown in Example 1 exports Persistent Chat data from the Persistent Chat database located on the server atl-sql-001.litwareinc.com; the exported data will be stored in the file C:\Logs\PersistentChatData.zip. Because the Level parameter was not specified, the Export-CsPersistentChatData cmdlet will do a full export of the Persistent Chat information.

Export-CsPersistentChatData -DBInstance "atl-sql-001.litwareinc.com\rtc" -FileName "C:\Logs\PersistentChatData.zip"

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.

If you are currently running Lync Server 2010, you can migrate your current Group Chat implementation by using the Export-CsPersistentChatData cmdlet to export your existing Group Chat configuration settings, then use the Import-CsPersistentChatData cmdlet to migrate that information to Lync Server 2013 and the Persistent Chat service. Note that the Export-CsPersistentChatData cmdlet gives you the option of importing all your Group Chat settings and data or only a portion of your Group Chat settings and data; for example, you can export (and then import) your Group Chat categories and chat rooms without exporting all the content associated with those categories and chat rooms.

Although primarily intended for migration purposes, the CsPersistentChatData cmdlets can also be used to manage Persistent Chat data on Lync Server 2013.

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 "Export-CsPersistentChatData"}

Lync Server Control Panel: The functions carried out by the Export-CsPersistentChatData cmdlet are not available in the Lync Server Control Panel.

 

Parameter Required Type Description

DBInstance

Required

System.String

Fully qualified domain name and name of the SQL Server instance where the Lync Server 2013 Persistent Chat database is located. For example, this syntax specifies the database found in the RTC database instance on the server atl-sql-001.litwareinc.com:

-DBInstance "atl-sql-001.litwareinc.com\rtc"

AsBytes

Optional

System.Management.Automation.SwitchParameter

Returns Persistent Chat information as a byte array; the returned data must then be stored in a variable in order to be used by the Import-CsPersistentChatData cmdlet. You cannot use both AsBytes and FileName in the same command.

DBName

Optional

System.String

SQL instance name of the Persistent Chat database.

DisableExportedNodes

Optional

System.Management.Automation.SwitchParameter

When present, all exported categories and chat rooms will be disabled when the export is complete.

FileName

Optional

System.String

Full path to the .ZIP file that the Export-CsPersistentChatData cmdlet will create; this file will contain the exported user data. For example:

-FileName "C:\Logs\PersistentChatData.zip"

Level

Optional

Microsoft.Rtc.Management.Chat.Cmdlets.ExportLevel

Enables you to specify which Persistent Chat information will be exported. Allowed values are:

* All

* User

* Category

* RoomDirectory

* Content

The default value is All, which means that all the Persistent Chat information will be exported.

Report

Optional

System.String

Full path for the log file created when the cmdlet runs. For example:

-Report "C:\Logs\ExportPersistentChat.html"

Scope

Optional

System.Collections.Generic.List

Enables you to export data for a specified set of categories (and their corresponding chat rooms). By default all Categories are exported.

StartDate

Optional

System.DateTime

Beginning date for the time period for which Persistent Chat chat room content should be exported. For example:

-StartDate "1/1/2012"

This parameter is valid only when they Level is set to RoomDirectory.

None. The Export-CsPersistentChatData cmdlet does not accept pipelined input.

The Export-CsPersistentChatData cmdlet creates .ZIP files.

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