New-MailboxSearch for all items creates confirmation prompt

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?

June 5th, 2015 8:49pm

Please tell us what you're trying to do.  If you're referring to a prompt, please post the entire message and prompt.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 8:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics