In my previous post I showed you how to assign the RBAC perms so a non-technical user can perform multi-mailbox searches.
Some organizations only want the Exchange Admin to perform searches, so in this short post I'll show you how to use PowerShell to do that.
Exchange Management Shell Discovery Search
You'll still need to assign yourself the RBAC search permissions.
Fire up the EMS and run:
Add-RoleGroupMember -Identity "Discovery Management" -Member User
**Note** Change "User" to your username.
Then to start the search, run:
New-MailboxSearch -Name "Confidential-Mail-Search" -StartDate "1/01/2014" -EndDate "1/24/2014" -SourceMailboxes "Stacey Branham" -TargetMailbox "Discovery Search Mailbox" -SearchQuery '"Confidential" and "Secret"' -MessageTypes Email -IncludeUnsearchableItems -LogLevel Full
In the above command, named "Confidential-Mail-Search" (you can name it whatever you like) "Confidential" and "Secret" are the keywords being searched for in the emails of "Stacey Branham's" mailbox for the date range 1/1/2014 to 1/24/2014 and it includes unsearchable items.
Now, you have a quick way to search without going through the Exchange Control Panel (ECP).
No comments:
Post a Comment