最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Issue transferring emails from Shared Mailbox to Teams Mailbox in Exchange - Stack Overflow

programmeradmin3浏览0评论

I have a shared mailbox with a lot of emails. I need to move all these emails to a teams email group. I'm hoping there's something simple I'm missing. I'm open to using other languages if existing solutions/libraries exist for them.

I have been attempting to use powershell to automate this process. I have so far been unsuccessful. I'm not sure if this is even possible the way I want it to be done. I've attempted to use some commands. Everything I try is either deprecated or does not work, and I'm not sure why. I've looked into Power Automate but as far as I can tell that wont let me actually transfer the emails to the team groups inbox.

    Emails = Get-EXOMailbox -Identity $SharedMailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq "Inbox"} | Get-MailboxFolder | Get-Message

# Move emails to the Teams group email
    foreach ($Email in $Emails) {
        $Email | Move-Message -Destination $TeamsGroupEmail
}
发布评论

评论列表(0)

  1. 暂无评论