admin管理员组文章数量:1241099
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
}
本文标签: pythonIssue transferring emails from Shared Mailbox to Teams Mailbox in ExchangeStack Overflow
版权声明:本文标题:python - Issue transferring emails from Shared Mailbox to Teams Mailbox in Exchange - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740050294a2222106.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论