配置 Microsoft Lync Server 2013 以使用 Microsoft Exchange Server 2013 存档Configuring Microsoft Lync Server 2013 to use Microsoft Exchange Server 2013 archiving

 

上次修改的主题: 2014-06-24Topic Last Modified: 2014-06-24

Microsoft Lync Server 2013 为管理员提供了将即时消息和 Web 会议脚本存档到用户的 Microsoft Exchange Server 2013 邮箱(而不是 SQL Server 数据库)的选项。Microsoft Lync Server 2013 gives administrators the option of having instant messaging and Web conferencing transcripts archived to a user's Microsoft Exchange Server 2013 mailbox rather than a SQL Server database. 如果启用此选项,则会将脚本写入用户邮箱中的“清除”文件夹。If you enable this option, transcripts are written to the Purges folder in the user's mailbox. “清除”文件夹是“可恢复邮件”文件夹下的一个隐藏文件夹。The Purges folder is a hidden folder found in the Recoverable Items folder. 虽然此文件夹对最终用户不可见,但该文件夹由 Exchange 搜索引擎编制索引,并且可以使用 Exchange 邮箱搜索和/或 Microsoft SharePoint Server 2013 进行发现。Although this folder is not visible to end-users, the folder is indexed by the Exchange search engine and can be discovered by using Exchange mailbox search and/or Microsoft SharePoint Server 2013. 由于信息存储在 Exchange In-Place 保留功能所使用的同一文件夹中 (负责存档电子邮件和其他 Exchange 通信) ,因此管理员可以使用单个工具搜索为用户存档的所有电子通信。Because information is stored in the same folder used by the Exchange In-Place Hold feature (responsible for archiving email and other Exchange communications), administrators can use a single tool to search for all the electronic communications archived for a user.

重要

若要完全禁用 Lync 对话的存档,您还必须禁用 Lync 对话历史记录。To completely disable archiving of Lync conversation, you must also disable Lync conversation history. 有关详细信息,请参阅下列主题:在 Lync Server 2013、set-csclientpolicy 和 set-csclientpolicy 中管理内部和外部通信的存档New-CsClientPolicy Set-CsClientPolicyFor more information, see the following topics: Managing the Archiving of internal and external communications in Lync Server 2013, New-CsClientPolicy, and Set-CsClientPolicy.

必须先配置两台服务器之间的服务器到服务器身份验证,然后才能将脚本存档到 Exchange 2013。In order to archive transcripts to Exchange 2013 you must begin by configuring server-to-server authentication between the two servers. 在服务器到服务器的身份验证准备就绪后,可以在 Microsoft Lync Server 2013 中执行以下任务 (请注意,根据您的设置和配置,您可能不需要完成所有这些任务) :After server-to-server authentication is in place you can then carry out the following tasks in Microsoft Lync Server 2013 (note that, depending on your setup and configuration, you might not need to complete all of these tasks):

  1. 通过修改 Lync Server 存档配置设置来启用 Exchange 存档。Enable Exchange archiving by modifying your Lync Server archiving configuration settings. 此步骤是所有部署必需的。This step is required for all deployments.

  2. 为用户的内部和/或外部通信启用存档。Enable archiving for internal and/or external communications for your users. 此步骤是所有部署必需的。This step is required for all deployments.

  3. 为每个用户配置 ExchangeArchivingPolicy 属性。Configure the ExchangeArchivingPolicy property for each user. 仅在 Lync Server 和 Exchange 位于不同林中时,才需要执行此步骤。This step is only required in Lync Server and Exchange are located in different forests.

步骤1:启用 Exchange 存档Step 1: Enabling Exchange Archiving

Lync Server 中的存档主要是通过使用存档配置设置进行管理。Archiving in Lync Server is primarily managed by using the archiving configuration settings. 在安装 Lync Server 2013 时,系统会自动为您提供这些设置的单个全局集合。When you install Lync Server 2013 you are automatically given a single, global collection of these settings. (管理员可以选择在站点范围创建新的存档设置集合。 ) 默认情况下,不会在全局设置中启用存档,也不会在这些设置中启用 Exchange 存档。(Administrators can optionally create new collections of archiving settings at the site scope.) By default, archiving is not enabled in the global settings, nor is Exchange archiving enabled in these settings. 为了使用 Exchange 存档管理员,必须在这些配置设置中配置 EnableArchiving 和 EnableExchangeArchiving 属性。In order to use Exchange archiving administrators must configure both the EnableArchiving and the EnableExchangeArchiving properties in these configuration settings. EnableArchiving 属性可以设置为以下三个可能的值之一:The EnableArchiving property can be set to one of three possible values:

  • None. 禁用存档。Archiving is disabled. 这是默认值。This is the default value. 如果将 EnableArchiving 设置为 None,则不会在 Lync Server 存档数据库或 Exchange 2013 中存档任何内容。If EnableArchiving is set to None then nothing will be archived in either your Lync Server archiving database or in Exchange 2013.

  • ImOnlyImOnly. 仅存档即时消息脚本。Only instant message transcripts are archived. 如果启用了 Exchange 存档,这些脚本将在 Exchange 2013 中存档。If Exchange archiving is enabled these transcripts will be archived in Exchange 2013. 如果禁用 Exchange 存档,则会将这些脚本存档到 Lync Server。If Exchange archiving is disabled then these transcripts will be archived to Lync Server.

  • ImAndWebConfImAndWebConf. 将存档即时消息脚本和 Web 会议脚本。Both instant message transcripts and Web conferencing transcripts are archived. 如果启用了 Exchange 存档,这些脚本将在 Exchange 2013 中存档。If Exchange archiving is enabled these transcripts will be archived in Exchange 2013. 如果禁用 Exchange 存档,则会将这些脚本存档到 Lync Server。If Exchange archiving is disabled then these transcripts will be archived to Lync Server.

EnableExchangeArchiving 属性是一个布尔值:将 EnableExchangeArchiving 设置为 True ($True) 启用 Exchange 存档或将 EnableExchangeArchiving 设置为 False ($False) 以禁用 Exchange 存档。The EnableExchangeArchiving property is a Boolean value: set EnableExchangeArchiving to True ($True) to enable Exchange archiving or set EnableExchangeArchiving to False ($False) to disable Exchange archiving. 例如,此命令启用即时消息脚本的存档,同时还启用 Exchange 存档:For example, this command enables the archiving of instant messaging transcripts and also enables Exchange archiving:

Set-CsArchivingConfiguration -Identity "global" -EnableArchiving ImOnly -EnableExchangeArchiving $True

若要禁用 Exchange 存档,请使用与以下内容类似的命令,这将启用即时消息存档,但也会禁用对 Exchange (的存档,也就是说,会将脚本存档到 Lync Server) :To disable Exchange archiving, use a command similar to the following, which enables instant messaging archiving but disables archiving to Exchange (in other words, transcripts will be archived to Lync Server):

Set-CsArchivingConfiguration -Identity "global" -EnableArchiving ImOnly -EnableExchangeArchiving $False

备注

如果将 EnableArchiving 属性设置为 "无",则 Lync Server 根本不会存档即时消息和 Web 会议脚本。If the EnableArchiving property is set to None then Lync Server will not archive instant messaging and Web conferencing transcripts at all. 在本例中,服务器只会忽略为 EnableExchangeArchiving 配置的值。In that case, the server will simply ignore the value configured for EnableExchangeArchiving.

还可以使用 Lync Server 控制面板 (或禁用) 启用 Exchange 存档。Exchange archiving can also be enabled (or disabled) by using the Lync Server Control Panel. 为此,请完成以下过程:To do that, complete the following procedure:

  1. 在控制面板中,单击“监控和存档”****,然后单击“存档配置”****。In Control Panel, click Monitoring and Archiving, and then click Archiving Configuration.

  2. 在“存档配置”**** 选项卡上,双击要修改的存档设置集合(例如“全局”**** 集合)。On the Archiving Configuration tab, double-click the collection of archiving settings to be modified (for example, the Global collection).

  3. 在“编辑存档设置”**** 窗格中,单击“存档设置”**** 下拉列表并选择“存档 IM 会话”****(仅存档即时消息会话)或“存档 IM 和 Web 会议会话”****(存档即时消息和 Web 会议会话)。In the Edit Archiving Setting pane, click the Archiving setting dropdown list and select either Archive IM sessions (to archive just instant messaging sessions) or Archive IM and web conferencing sessions (to archive both instant messaging and Web conferencing sessions).

  4. 选择要存档的项目后,选中 " Exchange Server 集成 " 复选框以启用 exchange 存档。After choosing the items to be archived, select the Exchange Server integration checkbox to enable Exchange archiving. 若要禁用 Exchange 存档,请清除此复选框。To disable Exchange archiving, clear this checkbox.

备注

如果“存档设置”设置为“禁用存档”,则“Exchange Server 集成”复选框不可用。The Exchange Server integration checkbox will not be available if the Archiving setting is set to Disable archiving. 必须先启用存档,然后再启用 Exchange 存档。You must enable archiving first and then enable Exchange archiving.

如果 Lync Server 2013 和 Exchange 2013 位于同一个林中,则为单个用户存档 (或至少对在 Exchange 2013 上具有电子邮件帐户的用户) 使用 Exchange In-Place 保留策略进行管理。If Lync Server 2013 and Exchange 2013 are located in the same forest then archiving for individual users (or at least for users who have email accounts on Exchange 2013) is managed by using Exchange In-Place Hold policies. 如果你的用户驻留在以前版本的 Exchange 中,则将使用 Lync Server 存档策略管理这些用户的存档。If you have users who are homed on a previous version of Exchange then archiving for those users will be managed by using Lync Server archiving policies. 请注意,只有在 Exchange 2013 上具有帐户的用户才可以将其 Lync 脚本存档到 Exchange。Note that only users with accounts on Exchange 2013 can have their Lync transcripts archived to Exchange.

如果 Lync Server 2013 和 Exchange 2013 位于不同的林中,则通过为每个用户帐户配置 ExchangeArchivingPolicy 属性来管理单个用户的存档。If Lync Server 2013 and Exchange 2013 are located in different forests then archiving for individual users is managed by configuring the ExchangeArchivingPolicy property for each individual user account. 请参阅步骤 3 以了解更多信息。See Step 3 for more information.

步骤 2:启用内部和/或外部通信的存档Step 2: Enabling the Archiving of Internal and/or External Communications

在启用存档 (和 Exchange 存档之后) 之后,您必须修改相应的存档策略,以确保实际存档用户会话。After you have enabled archiving (and Exchange archiving) you must then modify the appropriate archiving policies to ensure that user sessions are actually archived. 请注意,仅启用存档 (步骤 1) 不会导致 Lync Server 开始存档即时消息和 Web 会议脚本。Note that simply enabling archiving (Step 1) does not cause Lync Server to begin archiving instant messaging and Web conferencing transcripts. 相反,您必须使用存档策略启用内部和/或外部存档。Instead, you must use archiving policies to enable internal and/or external archiving. 当您安装 Lync Server 2013 时,还安装了一个包含两个属性的全局存档策略:When you install Lync Server 2013 you also install a single, global archiving policy that contains two properties:

  • ArchiveInternal。当设置为 True ($True) 时,指示将存档仅涉及在贵组织中有 Active Directory 帐户的用户的内部通信会话。ArchiveInternal. When set to True ($True) indicates that internal communication sessions involving only users who have Active Directory accounts in your organization) will be archived.

  • ArchiveExternal。当设置为 True ($True) 时,指示将存档内部通信会话(涉及至少一个在贵组织中没有 Active Directory 帐户的用户的会话)。ArchiveExternal. When set to True ($True) indicates that internal communication sessions (sessions involving at least one user who does not have an Active Directory account in your organization) will be archived.

默认情况下,这两个属性的值都设置为 False,意味着既不存档内部通信会话也不存档外部通信会话。By default, both of these property values are set to False, meaning that neither internal nor external communication sessions are archived. 若要修改全局策略,您可以使用 Lync Server 命令行管理程序和 Set-CsArchivingPolicy cmdlet。To modify the global policy, you can use the Lync Server Management Shell and the Set-CsArchivingPolicy cmdlet. 此命令可对内部和外部通信会话进行存档:This command enables the archiving of both internal and external communication sessions:

Set-CsArchivingPolicy -Identity "global" -ArchiveInternal $True -ArchiveExternal $True

您也可以使用 New-CsArchivingPolicy 在站点范围或每用户范围创建一个新策略。例如,此命令可新建一个名为 RedmondArchivingPolicy 的每用户存档策略:Alternatively, you can use the New-CsArchivingPolicy to create a new policy at either the site scope or the per-user scope. For example, this command creates a new per-user archiving policy named RedmondArchivingPolicy:

New-CsArchivingPolicy -Identity "RedmondArchivingPolicy" -ArchiveInternal $True -ArchiveExternal $True

如果您创建每用户策略,您将需要将该策略分配给相应的用户。例如:If you create a per-user policy you will then need to assign that policy to the appropriate users. For example:

Grant-CsArchivingPolicy -Identity "Ken Myer" -PolicyName  "RedmondArchivingPolicy"

也可以使用 Lync Server 控制面板对存档策略进行管理。Archiving policies can also be managed by using the Lync Server Control Panel. 在控制面板中,单击“监控和存档”****,然后单击“存档策略”****。Within the Control Panel, click Monitoring and Archiving and then click Archiving Policy. 若要修改现有策略,请双击该策略(例如“全局”),然后在“编辑存档策略”**** 窗格中,根据需要选中或清除“存档内部通信”**** 和“存档外部通信”**** 复选框。To modify an existing policy, double-click the policy (e.g., Global) and then, in the Edit Archiving Policy pane, select or clear the Archive internal communications and the Archive external communications checkboxes as needed. 若要创建新的存档策略,请单击 " 新建 ",然后选择 " 站点策略 " 或 " 用户策略"。To create a new archiving policy, click New and then select either Site policy or User policy. 如果您新建用户策略,则必须访问相应的用户帐户(从“用户”**** 选项卡中)并为这些用户分配新策略。If you create a new user policy then you must access the appropriate user accounts (from the Users tab) and assign those users the new policy.

步骤 3:配置 ExchangeArchivingPolicy 属性Step 3: Configuring the ExchangeArchivingPolicy Property

如果 Lync Server 2013 和 Exchange 2013 位于不同的林中,则只需在存档配置设置中启用 Exchange 存档就足够了;这不会导致即时消息和 Web 会议脚本在 Exchange 中进行存档。If Lync Server 2013 and Exchange 2013 are located in different forests then it is not enough to simply enable Exchange archiving in the archiving configuration settings; that will not result in instant messaging and Web conferencing transcripts being archived in Exchange. 相反,您还必须在每个相关的 Lync Server 用户帐户上配置 ExchangeArchivingPolicy 属性。Instead, you must also configure the ExchangeArchivingPolicy property on each of the relevant Lync Server user accounts. 此属性可设置为以下四个可能的值之一:This property can be set to one of four possible values:

  1. 即.Uninitialized. 指示将基于为用户的 Exchange 邮箱配置的 In-Place 保留设置进行存档;如果未在用户的邮箱上启用 In-Place 保留,则用户将在 Lync Server 中存档其邮件和 Web 会议脚本。Indicates that archiving will be based on the In-Place Hold settings configured for the user's Exchange mailbox; if In-Place Hold has not been enabled on the user's mailbox then the user will have his or her messaging and Web conferencing transcripts archived in Lync Server.

  2. UseLyncArchivingPolicyUseLyncArchivingPolicy. 指示应将用户的即时消息和 Web 会议脚本存档在 Lync Server 中,而不是在 Exchange 中进行存档。Indicates that the user's instant messaging and Web conferencing transcripts should be archived in Lync Server rather than in Exchange.

  3. NoArchivingNoArchiving. 指示根本不应存档用户的即时消息和 Web 会议脚本。Indicates that the user's instant messaging and Web conferencing transcripts should not be archived at all. 请注意,此设置将覆盖分配给用户的任何 Lync Server 存档策略。Note that this setting overrides any Lync Server archiving policies assigned to the user.

  4. ArchivingToExchangeArchivingToExchange. 指示应将用户的即时消息和 Web 会议脚本存档到 Exchange,而不考虑 In-Place 保留已 (的设置或尚未将) 分配给用户邮箱的设置。Indicates that the user's instant messaging and Web conferencing transcripts should be archived to Exchange regardless of the In-Place Hold settings that have (or have not) been assigned to the user's mailbox.

例如,若要将用户帐户配置为始终将即时消息和 Web 会议脚本存档到 Exchange,您可以在 Lync Server 命令行管理程序中使用类似下面的命令:For example, to configure a user account so that instant messaging and Web conferencing transcripts are always archived to Exchange you can use a command similar to this from the Lync Server Management Shell:

Set-CsUser -Identity "Ken Myer" -ExchangeArchivingPolicy ArchivingToExchange

如果要为一组用户(例如驻留在指定注册器池中的所有用户)设置同一存档策略,可以使用如下命令:If you want to set the same archiving policy for a group of users (for example, all the users homed on a specified Registrar pool) you can use a command similar to this:

Get-CsUser -Filter {RegistrarPool -eq "atl-cs-001.litwareinc.com"} | Set-CsUser -ExchangeArchivingPolicy ArchivingToExchange

请注意,您必须使用 Lync Server 命令行管理程序 (和 Windows PowerShell) 才能配置 ExchangeArchivingPolicy 属性的值。Note that you must use the Lync Server Management Shell (and Windows PowerShell) in order to configure value of the ExchangeArchivingPolicy property. 此属性不会向 Lync Server 控制面板中的管理员公开。This property is not exposed to administrators in the Lync Server Control Panel.

如果您要查看已向其分配了特定存档策略的所有用户的列表,则可以使用如下命令,此命令返回已将 ExchangeArchivingPolicy 属性设置为“未初始化”的所有用户的 Active Directory 显示名称:If you would like to view a list of all the users who have been assigned a specific archiving policy then you can use a command similar to the following, which returns the Active Directory display name of all the users who have had the ExchangeArchivingPolicy property set to Uninitialized:

Get-CsUser | Where-Object {$_.ExchangeArchivingPolicy -eq "Uninitialized"} | Select-Object DisplayName

同样,此命令也返回尚未将 ExchangeArchivingPolicy 属性设置为 UseLyncArchivingPolicy 的用户的显示名称:Likewise, this command returns the display name of the users who have not have the ExchangeArchivingPolicy property set to UseLyncArchivingPolicy:

Get-CsUser | Where-Object {$_.ExchangeArchivingPolicy -ne "UseLyncArchivingPolicy"} | Select-Object DisplayName