設定 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、 New-CsClientPolicySet-CsClientPolicy中管理內部和外部通訊的封存。For 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:

  • NoneNone. 封存已停用。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 屬性為 Boolean 值:將 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 伺服器整合] 核取方塊。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 屬性設為 Uninitialized 之所有使用者的 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