其他分享
首页 > 其他分享> > Microsoft 365 解决方案:如何导出Teams Chat History?

Microsoft 365 解决方案:如何导出Teams Chat History?

作者:互联网

51CTO 博客地址:https://blog.51cto.com/13637423 Microsoft Teams数据有许多不同的存储位置,虽然有些地方可以方便地访问和导出数据,但有些地方则不然,**以Teams Chat 为例,分为2种类型:Chat和Team Channel Conversation:** • Chat是Personal的,聊天记录存储在personal mailbox隐藏的folder里,不同于Channel的Conversation,Chat API也是去年年底微软才支持的。 • Conversation,用于团队或者项目中的成员之间信息讨论,比如项目成员在不同的Channel里针对不同的主题进行讨论,或者HR,Marketing等部门发布重要公告等等,一般会结合格式化窗口一起使用(经常使用的,@,!,Link,Highlight,Save Message等等) **下图是Teams的架构图,我们可以一目了然了解相关情况:** ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656188333841.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) **那么,面对IT Admin,如何获取Chat History的相关数据呢?** • 获取所有GroupMailbox(Personal Mailbox)的列表:Get-Mailbox -GroupMailbox|Select Displayname.WindowsEmailAddress • 使用WindowsEmailAddress运行以下命令来查看所需团队(个人邮箱)的邮箱文件夹的详细信息,你将能够从输出中查看TeamChat文件夹项目的大小:Get-ExoMailboxFolderStatistics -Identity Shelleyliu0415 -IncludeOldestAndNewestItems -Folderscope nonipmroot| ? {$_.FolderType -eq "TeamsMessagesData" } | Format-List Name, ItemsInFolder, FolderType, NewestItemReceiveDate ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656212467845.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) **特殊说明:在2020年10月份之前,Teams Chat存储在Team Chat Folder,但现在更新到TeamsMessageData文件夹中,所以之前的命令失效**:Get-MailboxFolderStatistics -Identity "Shelleyliu0415"| ? {$_.Name -eq “Team Chat”} | Format-Table Name, ItemsInFolder **一旦我们获取到个人或者Group的Mailbox的Team Chat内容之后,就可以到Microsoft 365 Compliance and Security 管理中心,配置并运行Search,导出所需要的Teams Chat为PST文件了**。 • 访问Microsoft 365 Compliance and Security 管理中心,点击Content Search ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656230400608.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) • 新建Content Search ,Condition选择Type:E-mail messages和Instance Messages,如下所示: ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656254169992.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) • 导出搜索结果: ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656262552381.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) 之后就可以生成PST文件了,查阅所需要的信息了。 **说明:** • 执行Export动作,需要当前登录管理员有eDiscovery Manager的授权,否则页面将有如下提示: ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656271233952.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) • 通过下方命令导入并连接Exchange Online PowerShell ![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210614/1623656278344952.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) 谢谢大家的阅读,希望对大家有所帮助,相关参考资料: • [Create a content search](https://docs.microsoft.com/en-us/microsoft-365/compliance/content-search?view=o365-worldwide) • [Get-MailboxStatistics](https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailboxstatistics?view=exchange-ps) • [Install Exchange Online PowerShell V2](https://www.alitajran.com/install-exchange-online-powershell-v2/)

标签:10,https,image,Teams,Chat,365,com,png
来源: https://blog.51cto.com/u_13637423/2901718