windows - exchange 2007如何删除特定邮箱中的邮件

  显示原文与译文双语对照的内容
0 0

我想运行powershell命令,以删除发送给特定个人的特定日期中包含特定主题的邮件。

请你建议我,或者向我介绍一个将在哈希脚本中进行的正确方向。

非常感谢你的指导。

我找到了一个很酷的剧本:


#Add Exchanage snapin
add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin

#Get list of mailboxes to delete
$users=Get-Content C:MailboxesToDelete.txt

#For Loop to delete them
foreach ($user in $users)
{
#Print to screen user mailbox to delete
$user
#Delete AD user and Mailbox
Remove-Mailbox -Identity $user -Permanent $true -whatif

#Remove the -whatif if you want to really delete some users.
}

从这里开始:

http://randomtechminutia.wordpress.com/2012/05/03/powershell-script-to-delete-exchange-mailboxes-in-mass/

但这将删除邮箱的邮件 !

时间: 原作者:

0 0

查看 Export-Mailbox cmdlet的帮助。 更多信息:

http://technet.microsoft.com/en-us/library/bb266964(v=exchg.80).aspx

原作者:
...