Hrm.
I tried the get-mailbox command, and it returns "Discovery Search
Mailbox" as the alias.
I plugged that into the command line, and get a different error:
Search-Mailbox -Identity "User Name" -SearchQuery
"date:2015-06-03..2015-06-06" -TargetMailbox "Discovery Search
Mailbox" -TargetFolder "Missing" -LogLevel Full
The property keyword isn't supported.
+ CategoryInfo : InvalidArgument: (:) [], ParserException
+ FullyQualifiedErrorId : 35063814
+ PSComputerName : cas01p.example.com
I working it through the GUI right now, and I'm a complete novice at
the ECP, but it seems to be working.
One thing I noted is that I fat-fingered the addition of the
management role - I used my server account vs. my Domain Admin
account. The former isn't really an Exchange administrator, and the
latter is. This may have something to do with the problem.
I'll try the powershell again after I get the data I need (or don't,
as the case might be).
Kurt
On Mon, Jun 8, 2015 at 12:48 PM, Richard Stovall <[email protected]> wrote:
> 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
>>>
>>>
>>
>