Search-Mailbox -Identity 'Jane Johnson' -SearchQuery 'From:"Jennifer Lunn" and attachment.txt' -TargetMailbox Administrator -TargetFolder SearchResults -LogLevel Full Search-Mailbox -Identity 'Jane Johnson' -SearchQuery attachment.txt -TargetMailbox Administrator -TargetFolder SearchResults -LogOnly -LogLevel Full Search-Mailbox -Identity 'Jane Johnson' -SearchQuery subject:'dogmatic' -TargetMailbox Administrator -TargetFolder SearchResults -LogOnly -LogLevel Full # Search for email with a subject containing the word 'dogmatic': Search-Mailbox -Identity 'Jane Johnson' -SearchQuery From:'Kevin McDonald' TargetMailbox Administrator -TargetFolder SearchResults -LogOnly -LogLevel Full Let's look at a few examples searching Jane Johnson's mailbox and storing the search results in the Administrator's mailbox in the SearchResults folder: # Search for emails from Kevin McDonald: This role links up to the Discovery Management admin role. This allows using the Search-Mailbox command in PowerShell. You must assign the Mailbox Search management role to the user performing the searches.If the mailbox has an archive attached, it will search both the mailbox and the archive (unless you've excluded the archive).If using a search query, it will return only a maximum of 10,000 items in the search results.It can only search a maximum of 10,000 mailboxes at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |