I've tried these two variations of the New-MailboxSearch command, but create a prompt I can't seem to suppress.
Try1:
New-365MailboxSearch-Name$iphName-SourceMailboxes$DisabledMailbox.PrimarySMTPAddress -InPlaceHoldEnabled$true-ItemHoldPeriodUnlimited-EstimateOnly-Confirm:$false
Try2:
New-365MailboxSearch -Name $iphName -SourceMailboxes $DisabledMailbox.PrimarySMTPAddress -InPlaceHoldEnabled $true -ItemHoldPeriod Unlimited -EstimateOnly -Confirm: $false -Force
Error:
An empty search will return all items in the source mailbox. If you don't want to copy all the items from the source mailbox, specify additional parameters to narrow the search.
Any thoughts?