Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 230

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 300

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 301

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 302

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 305

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 308

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 311

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320
Exchange2010/2013/2016删除指定主题邮件 – 理想社会

Exchange2010/2013/2016删除指定主题邮件

E

说到Exchange服务,大家并不陌生了,但是作为一个Exchange管理员的话,随时都在学习中,近期有个问题,用户发错邮件了,说能不能把用户收到的主题邮件进行删除,所以就同意帮用户删除指定主题的邮件了,具体操作见下:

在Exchange中我们可以使用search-mailbox命令在邮箱中就行搜索然后再次删除的操作可以实现邮件的关键性搜索及删除操作。在操作前,我们需要明确的是删除指定用户的主题邮件还是组织中的所有用户的主题邮件,当然不管哪种方式操作方法都是一样的,只是命令稍微不一样而已;但是在操作之前我们需要注意的是,只有管理员用户有以下权限才可以对 用户邮箱中搜搜及删除邮件:

邮箱搜索:利用此角色,您可以跨组织中的多个邮箱搜索邮件。默认情况下不会向管理员分配此角色。要向自己分配此角色以便搜索邮箱,请将您自己添加为“发现管理”角色组的成员。

邮箱导入导出: 此角色允许您从用户邮箱删除邮件。默认情况下,不向任何角色组分配此角色。若要从用户邮箱删除邮件,您可以将“邮箱导入导出”角色添加到“组织管理”角色组。

1.管理员本身需要加入organization Management, Domain admins, Enterprise admins, Schema admins;

2.此外,把管理员加到 “Discovery Management”组;

3.再给管理员加额外权限:

New-ManagementRoleAssignment -Role “Mailbox Import Export” -User “admin账号”

注意如果我们不赋予权限的话,执行的话会提示没有相关的命令:

我们 按照提示,需要运行search-mailbox命令,但是我们发现提示没有searh-mailbox这个命令,运行这个命令前需要添加一个mailbox import export权限

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User ixmsoft\administrator

添加权限后,然后再把命令提示符关闭,重新打开运行命令就可以了。

此示例将搜索组织的所有邮箱,查找主题行为“下载此文件”邮件,然后将其永久删除。

Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery ‘Subject:”Download this file”‘ -DeleteContent

当然如果要删除指定用户的主题邮件的话,我们只需以下命令即可

Search-Mailbox -Identity “gaowenlong” -SearchQuery ‘Subject:”Download this file”‘ -DeleteContent

本文转自 高文龙 51CTO博客,原文链接:http://blog.51cto.com/gaowenlong/1742046,如需转载请自行联系原作者

针对所有邮箱:

 


Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'Subject:"标题内容"' –DeleteContent

 

针对单个邮箱:


 

Search-Mailbox -Identity “单个邮箱的名字” -SearchQuery ‘Subject:”标题内容“‘ –DeleteContent


 

针对通讯组:


 

Get-DistributiongroupMember <通讯组名字> | Search-Mailbox -SearchQuery ‘Subject:”标题内容“‘ -DeleteContent -Force:$TRUE

 

 

About the author

Add comment

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

By now163

Your sidebar area is currently empty. Hurry up and add some widgets.