Exchange restores deleted messages
The specific operation method, Microsoft officially provided a very detailed operation steps, the following is a link, I am here to talk about a recent problem, in the use of official commands, the prompt did not find the user or group "Discovery Search Mailbox".
Portal: https://docs.microsoft.com/zh-cn/Exchange/recipients/user-mailboxes/recover-deleted-messages?view=exchserver-2016
This error is very strange, can not find the search mailbox, but the name must be no problem, so get database, check the search mailbox, no problem, and think that there will be other names in AD, so check the search account in AD.
Sure enough, in the red box, after the DiscoverySearchMailbox, there is a string of numbers for Barabara. Copy all the contents here into the command. The script runs successfully, OK, that's all.