Just realized that the name is whatever you give it when setting up the
discovery mailbox. Can you get what you need from taking a look at all the
attributes of all your discovery mailboxes?
Get-Mailbox -Resultsize unlimited -Filter {RecipientTypeDetails -eq
"DiscoveryMailbox"} | fl
On Mon, Jun 8, 2015 at 3:29 PM, Richard Stovall <[email protected]> wrote:
> I do these searches from the GUI (or on the shiny new archiver mentioned
> in another thread). I know it's not sexy, but it gets the job done. When
> setting up the search, the display name for the target mailbox is
> "Discovery Search Mailbox". Don't know if that helps.
>
> On Mon, Jun 8, 2015 at 3:21 PM, Kurt Buff <[email protected]> wrote:
>
>> All,
>>
>> Running Exchange 2010 SP3+, and am trying to find a couple of emails
>> that seem to have gone missing. I'm running the command below from my
>> workstation, and getting the error as shown.
>>
>> [PS] C:\windows\system32>Search-Mailbox -Identity "User Name"
>> -SearchQuery "date:2015-06-03..2015-06-06" -TargetMailbox "Discovery
>> Mailbox" -TargetFolder "Missing" -LogLevel Full
>> The user or group"Discovery Mailbox" wasn't found. Make sure you typed
>> it correctly.
>> + CategoryInfo : InvalidArgument: (0:Int32)
>> [Search-Mailbox], ManagementObjectNotFoundException
>> + FullyQualifiedErrorId :
>> AEFFD8B6,Microsoft.Exchange.Management.Tasks.SearchMailbox
>> + PSComputerName : cas01p.example.com
>>
>>
>> I've done a bit of STFW, and most pages are about difficulties
>> upgrading. I've tried variations on the name of the discovery mailbox
>> in the command below, including "DiscoveryMailbox" and
>> "DiscoverySearchMailbox" and even
>> "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" (which
>> generates a different error - "The property keyword isn't supported").
>>
>> I have also tried unhiding the mailbox, but perhaps didn't wait long
>> enough for replication
>>
>> Anyone have a clue for me?
>>
>>
>> Kurt
>>
>>
>>
>