Поиск в письме exchange (по всей базе во всех ящиках)

Поиск  Пользователи  Правила 
Закрыть
Логин:
Пароль:
Забыли свой пароль?
Регистрация
Войти
 
Страницы: 1
Ответить
Поиск в письме exchange (по всей базе во всех ящиках)
Нужно найти письмо, от определенного отправителя, но не понятно в каком ящике.
Можно как то искать по всей базе exchange ?
РЕШЕНИЕ: Запустите PowerShell

Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'любой текст что ищите' -TargetMailbox ящик-куда -TargetFolder "SearchLog" -LogOnly -LogLevel Full | out-file c:\1.txt

Поясню:
любой текст что ищите - это любой текст что хотите найти (можно и сам емеил)
ящик-куда  - имя ящика куда отправить результат
SearchLog  - в какую папку поместить
LogOnly  - можно убрать этот параметр тогда бужет отправлен не лог поиска а сами письма
out-file c:\1.txt - дополнительно для удобства на диск копируем результат.

вот еще примеры от майкрософт(Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online):

1.
Search-Mailbox -Identity "Joe Healy" -SearchQuery "Subject:Project Hamilton" -TargetMailbox "DiscoveryMailbox" -TargetFolder "JoeHealy-ProjectHamilton" -LogLevel Full

This example searches the mailbox of Joe Healy and copies the search results to the DiscoveryMailbox in the folder JoeHealy-ProjectHamilton.

2. Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -TargetMailbox "administrator" -TargetFolder "SearchAndDeleteLog" -LogOnly -LogLevel Full

This example searches April Stewart's mailbox for messages that contain the phrase "Your bank statement" in the subject and logs the result in the SearchAndDeleteLog folder in the administrator's mailbox. Messages aren't copied to the target mailbox.

3. Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContent

This example searches April Stewart's mailbox for messages that contain the phrase "Your bank statement" in the subject and deletes the messages from the source mailbox. You have to be assigned the Mailbox Import Export management role to use the DeleteContent switch.


4. Get-Mailbox | Search-Mailbox -SearchQuery 'election OR candidate OR vote' -TargetMailbox "Discovery Search Mailbox" -TargetFolder "AllMailboxes-Election" -LogLevel Full

This example searches all mailboxes in your organization for messages that contain the words "election", "candidate", or "vote". The search results are copied to the Discovery Search Mailbox in the folder AllMailboxes-Election.


https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/Search-Mailbox?view=exchange-ps
Услуги Системного Администратора - Работаю только с Юр. Лицами по договору обслуживания.
А есть ли способ, просто узнать в какой папке у пользователя находится письмо?
Страницы: 1
Ответить
Форма ответов
Текст сообщения*
:) ;) :D 8-) :( :| :cry: :evil: :o :oops: :{} :?: :!: :idea:
Защита от автоматических сообщений. Введите символы, изображенные на этой картинке в поле ввода &quote;Код подтверждения&quote;.