Exchange 2010搜索邮箱效率 [英] Exchange 2010 search-mailbox efficiency

查看:130
本文介绍了Exchange 2010搜索邮箱效率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要清除所有邮箱中的邮件。通常,我会针对每个邮箱服务器针对单个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?

推荐答案

使用工作。 使用工作流程。
Use jobs.  Use a workflow.


这篇关于Exchange 2010搜索邮箱效率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆