问题描述
我需要清除所有邮箱中的邮件。通常,我会针对每个邮箱服务器针对单个Powershell运行单独的搜索,以避免内存问题。
I need to purge a message from all mailboxes. Usually I run separate searches from a single Powershell against each mailbox server to avoid memory issues.
Get-Mailbox -ResultSize unlimited -Server server1 | Search-Mailbox ...
$
Get-Mailbox -ResultSize unlimited -Server server2 | Search-Mailbox ...
$
Get-Mailbox -ResultSize unlimited -Server server3 | Search-Mailbox ...
$
Get-Mailbox -ResultSize unlimited -Server server4 |搜索邮箱...
Get-Mailbox -ResultSize unlimited -Server server1 | Search-Mailbox ...
Get-Mailbox -ResultSize unlimited -Server server2 | Search-Mailbox ...
Get-Mailbox -ResultSize unlimited -Server server3 | Search-Mailbox ...
Get-Mailbox -ResultSize unlimited -Server server4 | Search-Mailbox ...
这是一个接一个地运行。 有没有办法可以并行运行它们? 没有办法使用我知道的invoke-command,因为需要运行exchange cmdlet。 一个foreach将一个接一个地运行它们以及我理解的那个。 有什么建议吗?
This runs each one after the other. Is there a way I can run them in parallel? There's no way to use invoke-command that I'm aware of because exchange cmdlets need to run. A foreach would run them one after the other as well from what I understand. Any suggestions?
推荐答案
这篇关于Exchange 2010搜索邮箱效率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!