I created dozens of in-place eDiscovery search in powershell for the users who have left the company, but we need to retain their mailboxes for legal compliance reasons. The powershells looked like this:
New-MailboxSearch -name "User1" -SourceMailboxes user1@domain.com -ExcludeDuplicateMessages $true -InPlaceHoldEnabled $true -ItemHoldPeriod 255
And when I go into the EAC> Compliance Mgmt> in-place eDiscovery, I can see all of them but their status says "Status: Search Not Started." So I used the EAC to edit one, and check if I missed something, but everything from the PS script is correct, and when I clicked Save, again without actually changing anything, the search did start at that point! I looked at a few other cmdlets, and I found the start-mailboxsearch. So I issued:
start-MailboxSearch -Identity "User1"
But that comes back with "Unable to execute the task. Reason: TargetMailbox is required for copying messages returned by the search." So why am I able to use the EAC eDiscovery portion without having to specify TargetMailbox, but when I use Powershell I do have specify it?