本文介绍了使用PowerShell清理/清除Exchange Online邮箱-2020年7月1日发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2020年7月1日,Microsoft退出了Search-Mailbox cmdlet.此功能允许清除邮箱中的所有内容,例如

On 1st July 2020 Microsoft have retired the Search-Mailbox cmdlet. This functionality allowed for the purging of all content in a mailbox e.g.

Search-Mailbox -Identity joe.bloggs@domain.com -DeleteContent

上述功能效果很好,但是已经淘汰了.推荐的前进方式是使用New-ComplianceSearch,Start-ComplianceSearch和New-ComplianceSearchAction.除非您阅读 https://docs.microsoft.com/zh-cn/exchange/policy-and-compliance/ediscovery/delete-messages?view=exchserver-2019 具有此杀手线>

The above functionality worked great, however it has been retired. The recommended way forward is to use New-ComplianceSearch, Start-ComplianceSearch and New-ComplianceSearchAction. This seems all good until you read the documentation at https://docs.microsoft.com/en-us/exchange/policy-and-compliance/ediscovery/delete-messages?view=exchserver-2019 which has this killer line

我现在找不到清理/清除邮箱的方法.

I cannot find a way to clean/purge a mailbox now.

有人知道任何新的PowerShell cmdlet或使用现有cmdlet的方式,这些cmdlet允许完全清除给定标识(电子邮件地址)的Exchange Online邮箱吗?

Does anyone know of any new PowerShell cmdlets or ways of using existing ones that will allow the complete purging of an Exchange Online mailbox given an Identity (email address)?

推荐答案

New-ComplianceSearchAction 一次可以处理10个电子邮件清除.因此,您可以想到两种选择

New-ComplianceSearchAction can handle 10 email purges at a time. So, you have two options as I can think of

  1. 遍历多个周期的 New-ComplianceSearchAction -Purge -PurgeType HardDelete
  2. 将保留策略应用于选定的邮箱,该邮箱可以在'x'天之内删除所有电子邮件

谢谢,Manu

这篇关于使用PowerShell清理/清除Exchange Online邮箱-2020年7月1日发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 19:14