This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search All mailbox's on the server: | |
Get-mailboxserver -identity "SERVERNAME" | search-mailbox -searchquery "Search query as you would type it in Outlook" -targetmailbox "USERNAMEOFTARGETMAILBOX" -TargetFolder "NEWFOLDERTOPUTSEARCHIN" -loglevel full | |
# Search One mailbox on the server: | |
search-mailbox -Identity "USERNAME" -searchquery "Search query as you would type it in Outlook" -targetmailbox "USERNAMEOFTARGETMAILBOX" -TargetFolder "NEWFOLDERTOPUTSEARCHIN" -loglevel full | |
# Explination: | |
# USERNAMEOFTARGETMAILBOX - The mailbox the search results will be pulled into. (E.G: administrator) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search Mailbox's for given keywords | |
# | |
# Make sure the targetMailbox exists, if the folderName folder does not that will be created automatically. | |
# | |
# | |
# Made by Mitchell Urgero | |
# | |
# |
OlderNewer