CmdID / PowerShell / Cmdlets / Search
Search-Mailbox
Use the Search-Mailbox cmdlet to search a mailbox and copy the results to a specified target mailbox, delete messages from the source mailbox, or both. Exchange PowerShell reference
From the Exchange PowerShell reference 16 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the identity of the mailbox to search.-EstimateResultOnlyThe EstimateResultOnly switch returns only an estimate of the total number and size of messages.-TargetFolderThe TargetFolder parameter specifies a folder name in which search results are saved in the target mailbox.-TargetMailboxThe TargetMailbox parameter specifies the destination mailbox where search results are copied.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DeleteContentThe DeleteContent switch specifies that the messages returned by the search be permanently deleted from the source mailbox.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-DoNotIncludeArchiveThe DoNotIncludeArchive switch specifies that the user's archive mailbox shouldn't be included in the search.-ForceThe Force switch hides warning or confirmation messages.-IncludeUnsearchableItemsThe IncludeUnsearchableItems switch includes items that couldn't be indexed by Exchange Search in the search results.-LogLevelThe LogLevel parameter specifies the logging level for the search.-LogOnlyThe LogOnly switch performs a search, but only generates a log.-SearchDumpsterThe SearchDumpster switch specifies whether to include the Recoverable Items folder in the search.-SearchDumpsterOnlyThe SearchDumpsterOnly switch specifies that only the Recoverable Items folder of the specified mailbox is searched.-SearchQueryThe SearchQuery parameter specifies a search string or a query formatted using Keyword Query Language (KQL).-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.