Exchange 2013. Удаление писем из почтовых ящиков

Удаление писем в Exchange 2013Удаление писем в Exchange 2013 бывает необходимо выполнить только из единственного почтового ящика, в случае отправки одному получателю, но встречаются и более сложные случаи, например, когда генеральный директор отправил конфиденциальные данные группе рассылки или, ещё хуже, целой компании. В последнем случае крайне нежелательно, чтобы вообще кто-то прочитал письмо и поэтому время идет даже не на минуты, а на секунды — надо как можно скорее удалить письмо вообще у всех сотрудников. Именно для такого сценария предназначена эта статья — чтобы под рукой всегда была подробная инструкция, в которой только и нужно что подставить свои данные в команду, выполнить её на вашем сервере и все будет готово и останется лишь ждать пока запрос будет обработан. Итак, начнем.


Найти больше информации по настройке и администрированию Exchange 2013 на моем блоге вы сможете в основной статье тематики — Exchange 2013 — Установка, настройка, администрирование.


Необходимые разрешения

Нет смысла что-то выдумывать, просто цитата из статьи «Поиск и удаление сообщений«:

Поиск в почтовых ящиках.   Эта роль позволяет искать сообщения в нескольких почтовых ящиках в пределах организации. Администраторы не имеют этой роли по умолчанию. Чтобы назначить себя этой роли для поиска в почтовых ящиках, добавьте себя в группу ролей «Управление обнаружением». См. раздел Назначение разрешений обнаружения электронных данных в Exchange.

Импорт и экспорт почтовых ящиков.   Эта роль позволяет удалять сообщения из почтового ящика пользователя. По умолчанию эта роль группе ролей не назначена. Для удаления сообщений из почтовых ящиков пользователей следует добавить роль «Импорт и экспорт почтовых ящиков» в группу ролей «Управление организацией». Дополнительные сведения см. в разделе Добавление роли в группу ролей.

Частично пример о назначении ролей можно посмотреть также в моей статье «Экспорт почтовых ящиков Exchange«.

Удаление письма из одного ящика

Отозвать сообщение пока оно ещё не прочитано можно прямо из outlook. Как это сделать для версий outlook 2010, 2007, 2003 можно прочитать в статье «ОТЗЫВ ОТПРАВЛЕННЫХ ПИСЕМ В OUTLOOK 2010, 2007, 2003«, либо на официальном сайте MS Office в учебных курсах «Учебные курсы по Outlook 2013«, урок «Отзыв и замена отправленных сообщений«. Нас будет интересовать более сложный случай, когда сообщение уже помечено прочтенным.

Для этого выполним команду powershell, нам необходимо название почтового ящика, а также тема сообщения:

[PS] C:\Windows\system32>Search-Mailbox -Identity «egor01» -SearchQuery «Subject:’test message'» -DeleteContent

delete item from server 01

До и после удаления:

delete item from server 02

delete item from server 03

Удаление писем в Exchange 2013 у группы получателей

Логика проста — командлет «Get-Mailbox» возвращает список всех почтовых ящиков, который потом скармливается командлету «Search-Mailbox«. Если вы хотите удалить письма у определенной группы получателей, логично воспользоваться командлетом «Get-DistributionGroupMember«.  Для увеличения скорости обработки команды можно отключить запрос на удаление при первом его появлении указав «да для всех». Все просто, переходим сразу к делу:

[PS] C:\Windows\system32>Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery «Subject:’test message'» -DeleteContent

delete item from server 04

Можно сказать пару слов про параметр «-ResultSize» у командлета «Get-Mailbox» — использовать его необязательно, если у вас меньше 1000 почтовых ящиков — это именно то максимальное количество, которое выводится по умолчанию.

После выполнения команды вам придет результат по каждому почтовому ящику.

На этом все.


Можно также почитать о более сложных сценариях поиска и удаления сообщений на exchange server (в том числе более старых версий, чем 2013):

Удаление отдельных сообщений с сервера Exchange

Create an In-Place eDiscovery search

Справочник по синтаксису языка запросов по ключевым словам (KQL)

Информация по использованным командлетам можно найти на соответствующих статьях на Technet:

Get-Mailbox

Search-Mailbox

Get-DistributionGroupMember

comments powered by HyperComments
2ventures
2022-06-18 00:28:48
<strong>3rapidly</strong>
dissertation help for phd candidates
2022-07-05 15:35:42
<strong>writing dissertation chapters https://professionaldissertationwriting.org/</strong>
writing an abstract for a dissertation
2022-07-05 18:17:34
<strong>dissertation definition https://professionaldissertationwriting.com/</strong>
doctoral dissertation writing help
2022-07-05 23:44:20
<strong>dissertation writing tips https://dissertationwritingcenter.com/</strong>
average dissertation length
2022-07-06 00:52:26
<strong>writing doctoral dissertation https://dissertationhelpexpert.com/</strong>
writing a dissertation prospectus
2022-07-06 09:36:51
<strong>buy art online berlin https://writing-a-dissertation.net/</strong>
dissertation writers
2022-07-06 11:57:12
<strong>doctoral dissertation help reference https://bestdissertationwritingservice.net/</strong>
ucl dissertation help
2022-07-06 15:42:59
<strong>online dissertation writing https://businessdissertationhelp.com/</strong>
dissertation methodology
2022-07-06 17:32:12
<strong>writing a literature review for a dissertation https://customdissertationwritinghelp.com/</strong>
help dissertation dissertation help
2022-07-06 21:09:42
<strong>best dissertation writing service review https://writingadissertationproposal.com/</strong>
how long should a dissertation be lse
2022-07-06 23:06:28
<strong>online dissertation writing https://dissertationhelpspecialist.com/</strong>
dissertation proposal sample
2022-07-07 02:06:46
<strong>how do i write a dissertation https://dissertationhelperhub.com/</strong>
dissertation research and writing
2022-07-07 04:57:36
<strong>writing methodology for dissertation https://customthesiswritingservices.com/</strong>
online casino michigan
2022-07-25 18:26:39
<strong>online casino deposit bonuses https://download-casino-slots.com/</strong>
resort online casino
2022-07-25 22:19:30
<strong>bovada online casino https://firstonlinecasino.org/</strong>
uk casino online
2022-07-26 00:58:35
<strong>vegas x online casino login https://onlinecasinofortunes.com/</strong>
diamond online casino
2022-07-26 03:09:39
<strong>borgata online casino https://newlasvegascasinos.com/</strong>
new vegas online casino
2022-07-26 05:29:47
<strong>888 casino online support https://trust-online-casino.com/</strong>
hardrock casino online
2022-07-26 08:28:58
<strong>party casino online nj https://onlinecasinosdirectory.org/</strong>
free online casino games real money no deposit
2022-07-26 10:01:47
<strong>firekeepers online casino michigan https://9lineslotscasino.com/</strong>
admiral online casino
2022-07-26 11:53:04
<strong>online casino welcome bonus https://free-online-casinos.net/</strong>
zone online casino msn
2022-07-26 15:09:46
<strong>vegas x online casino https://internet-casinos-online.net/</strong>
online casino app
2022-07-26 18:27:13
<strong>new jersey online casino sites https://cybertimeonlinecasino.com/</strong>
lady luck casino online
2022-07-26 20:02:42
<strong>online casino sweepstakes https://1freeslotscasino.com/</strong>
online casino games that pay real money
2022-07-27 01:55:24
<strong>online casino spain https://casino-online-roulette.com/</strong>
las atlantis casino online no deposit bonus codes 2021
2022-07-27 04:44:16
<strong>online casino deutschland https://casino-online-jackpot.com/</strong>
no deposit online casino bonus
2022-07-27 09:59:33
<strong>trusted online casino https://ownonlinecasino.com/</strong>
san manuel online casino
2022-07-27 11:39:30
<strong>online casino las vegas https://all-online-casino-games.com/</strong>
maryland live online casino
2022-07-27 15:09:38
<strong>las atlantis online casino https://casino8online.com/</strong>
vpn free ip address
2022-08-07 19:51:25
<strong>best private vpn https://freehostingvpn.com/</strong>
best vpn for windows 2022
2022-08-08 01:01:58
<strong>buy vpn https://imfreevpn.net/</strong>
free vpn for ios
2022-08-08 02:45:59
<strong>incognito vpn https://superfreevpn.net/</strong>
best ios vpn
2022-08-08 05:19:58
<strong>cheap vpn https://free-vpn-proxy.com/</strong>
firestick vpn free
2022-08-08 07:20:12
<strong>best vpn app https://rsvpnorthvalley.com/</strong>
the best gay christian dating app
2022-08-23 14:26:01
<strong>older black gay men dating sites https://gay-singles-dating.com/</strong>
gay dating suite fresno
2022-08-23 17:02:46
<strong>white gay men for asian gay men dating https://gayedating.com/</strong>
gay punk dating
2022-08-23 18:34:49
<strong>dating gay bbc meet twinks https://datinggayservices.com/</strong>
free single dating sites
2022-08-24 12:35:55
<strong>sites online dating https://freephotodating.com/</strong>
dating site for free
2022-08-24 15:01:27
<strong>dating sites online https://onlinedatingbabes.com/</strong>
free free
2022-08-24 17:33:48
<strong>free dating chatting online https://adult-singles-online-dating.com/</strong>
online dating online
2022-08-24 19:42:55
<strong>singles near me https://adult-classifieds-online-dating.com/</strong>
free adult dating
2022-08-24 22:13:38
<strong>online casual dating https://online-internet-dating.net/</strong>
free dating sites in iran
2022-08-25 05:25:10
<strong>best dating sites for free https://wowdatingsites.com/</strong>
dating singles site
2022-08-25 07:39:40
<strong>dating agency login https://lavaonlinedating.com/</strong>
single women local
2022-08-25 09:53:53
<strong>chinese dating show https://freeadultdatingpasses.com/</strong>
american singles
2022-08-25 11:17:15
<strong>tinder web https://virtual-online-dating-service.com/</strong>
dating at
2022-08-25 14:54:32
<strong>dating site free https://zonlinedating.com/</strong>
milf dating franken
2022-08-25 17:04:20
<strong>online dating sites free chatting https://onlinedatingservicesecrets.com/</strong>
best online casino bonuses
2022-08-30 08:59:50
<strong>live roulette online casino https://onlinecasinos4me.com/</strong>
firekeepers casino online
2022-08-30 16:08:12
<strong>online casino game https://online2casino.com/</strong>
lucky dragon casino online
2022-08-30 18:05:01
<strong>resorts online casino app https://casinosonlinex.com/</strong>
chat room for gay chubs
2022-09-03 02:18:51
<strong>free nude gay video chat https://newgaychat.com/</strong>
chat with gay thai boys
2022-09-03 04:59:42
<strong>free gay bays chat https://gaychatcams.net/</strong>
free live gay webcam chat rooms
2022-09-03 11:28:46
<strong>gay webcam and chat https://gaychatspots.com/</strong>
gay phone chat line free trial
2022-09-03 16:05:04
<strong>gay chat louisiana https://gay-live-chat.net/</strong>
gay chicago webcam chat software
2022-09-03 18:54:21
<strong>gay chicago webcam chat software https://chatcongays.com/</strong>
video gay chat
2022-09-04 01:00:15
<strong>gay video chat for windows 8 https://gayphillychat.com/</strong>
gay video cam chat broadcast self
2022-09-04 06:15:06
<strong>cleveland gay chat https://gaychatnorules.com/</strong>
gay cam chat webcam
2022-09-04 10:49:53
<strong>gay chat mature https://gaymusclechatrooms.com/</strong>
live gay web cam chat rooms
2022-09-04 17:11:07
<strong>dirty gay video chat https://free-gay-sex-chat.com/</strong>
gay boy teen webcam chat
2022-09-04 23:35:35
<strong>gay chat apps https://gayinteracialchat.com/</strong>
white paper writing services
2022-10-20 18:03:41
<strong>write my custom paper https://term-paper-help.org/</strong>
write my papers discount code
2022-10-20 19:17:05
<strong>paper writer services https://sociologypapershelp.com/</strong>
professional paper writer
2022-10-20 21:00:41
<strong>papers help https://uktermpaperwriters.com/</strong>
paper writing company
2022-10-20 22:58:21
<strong>pay for a paper https://paperwritinghq.com/</strong>
find someone to write my college paper
2022-10-20 23:47:48
<strong>pay to do paper https://writepapersformoney.com/</strong>
buy a literature review paper
2022-10-21 02:19:25
<strong>where can i find someone to write my college paper https://doyourpapersonline.com/</strong>
write my sociology paper
2022-10-21 04:21:44
<strong>papers writing service https://top100custompapernapkins.com/</strong>
pay to write my paper
2022-10-21 05:02:31
<strong>order a paper https://researchpaperswriting.org/</strong>
help with writing papers
2022-10-21 06:46:52
<strong>white paper writing services https://cheapcustompaper.org/</strong>
college papers to buy
2022-10-21 07:40:10
<strong>best paper writing services https://writingpaperservice.net/</strong>
write my paper
2022-10-21 13:41:14
<strong>write my paper in 3 hours https://essaybuypaper.com/</strong>
pay to write paper
2022-10-21 14:08:12
<strong>what should i write my paper on https://papercranewritingservices.com/</strong>
where to buy papers
2022-10-21 16:15:36
<strong>buy thesis paper https://premiumpapershelp.com/</strong>
paper writer service
2022-10-21 18:52:45
<strong>write my paper apa format https://studentpaperhelp.com/</strong>
1wearing
2023-01-27 12:07:33
<strong>2beverage</strong>
coursework writing service uk
2023-02-05 14:17:04
<strong>coursework writing help https://brainycoursework.com/</strong>
coursework help university
2023-02-05 16:10:57
<strong>coursework info https://courseworkninja.com/</strong>
creative writing english coursework
2023-02-05 17:56:46
<strong>coursework only degree https://writingacoursework.com/</strong>
creative writing coursework ideas
2023-02-05 19:32:09
<strong>coursework sample https://mycourseworkhelp.net/</strong>
coursework research
2023-02-05 21:39:57
<strong>online coursework https://courseworkinfotest.com/</strong>
coursework writing help
2023-02-05 22:46:00
<strong>coursework resources https://coursework-expert.com/</strong>
coursework samples
2023-02-05 23:48:15
<strong>creative writing coursework ideas https://teachingcoursework.com/</strong>
do my coursework
2023-02-06 01:06:12
<strong>coursework writer https://buycoursework.org/</strong>
single website
2023-02-08 12:41:50
<strong>free good https://freewebdating.net/</strong>
online sex dating
2023-02-08 14:47:50
<strong>pof dating https://jewish-dating-online.net/</strong>
free online dating and personals
2023-02-08 17:36:03
<strong>meet single https://sexanddatingonline.com/</strong>
daiting online
2023-02-08 21:28:54
<strong>top dating websites https://onlinedatinghunks.com/</strong>
online sex dating
2023-02-08 22:24:33
<strong>japanese dating sites https://datingwebsiteshopper.com/</strong>
single senior dating sites
2023-02-09 00:21:20
<strong>dating sex https://allaboutdatingsites.com/</strong>
Яндекс.Метрика