The following information is from Google Translate.
Exchange 2019
When selecting "In-Place eDiscovery and Hold", the page prompts: "The discovery mailbox was not found, which is a hidden default mailbox required for searching mailboxes. It may have been inadvertently deleted. This mailbox must be recreated to search Mail."
After executing the following command in the exchange management shell, I don't know how to continue, but the above prompt is still displayed on the ECP page. "Mdb02-Faile" is a name I changed myself.
[PS] C:\Windows\system32>Remove-Mailbox "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}"
confirm
Are you sure you want to take this action?
Deleting mailbox "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" will delete Active Directory
User object and marks the mailbox and archive (if present) for deletion in the database.
[Y] Yes (Y) [A] All Yes (A) [N] No (N) [L] None (L) [?] Help (default is "Y"): y
Warning: The accessed database "Mdb02-Faile" on server "XX****.cn" is not loaded or is not available.
[PS] C:\Windows\system32>New-Mailbox -Name "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" -Alias "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" -DisplayName "Discovery Search Mailbox" -Discovery
Name Alias ServerName ProhibitSendQuota
DiscoverySearchMailbox... DiscoverySearchMa... server1 50 GB (53,687,091,200 bytes)
[PS] C:\Windows\system32>Add-MailboxPermission "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" -User "Discovery Management" -AccessRights FullAccess -InheritanceType all
Identity User Access Rights Is Inherited Deny
XX****.cn/... XXXXX\Discove... {FullAccess} False False
[PS] C:\Windows\system32>Set-Mailbox -Identity "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" -HiddenFromAddressListsEnabled $true -ProhibitSendQuota 50GB -ProhibitSendReceiveQuota 50GB -RecoverableItemsQuota ota 50GB
I once made a mistake and damaged a certain database, which made it impossible to uninstall. The prompt is as follows:
Error: Active Manager operation failed. Error: Database operation failed. Error: Operation failed with message: MapiExceptionDatabaseError: Unable to mount database. (hr=0x80004005, ec=1108) Diagnostic context: Lid: 65256 Lid: 10722 StoreEc: 0x454 Lid: 1494 ---- Remote Context Beg ---- Lid: 1238 Remote Context Overflow Lid: 34760 StoreEc: 0xFFFFFDF0 Lid: 41344 Guid: b3b8a0ba-ded1-4f51-a012-449cebaa67c8 Lid: 35200 dwParam: 0x7948 Lid: 59596 dwParam: 0x 906FF055 Msg: JI20 Lid: 43212 dwParam: 0x906FF055 Msg: JT05 Lid: 43212 dwParam: 0x906FF055 Msg: JT08 Lid: 59596 dwParam: 0x906FF055 Msg: WM19 Lid: 59596 dwParam: 0x906FF055 Msg: WM20 Lid: 59596 dwParam: 0x906FF065 Msg g: WM21 Lid: 54472 StoreEc: 0x980 Lid: 42184 StoreEc: 0x454 Lid: 10786 dwParam: 0x0 Msg: 15.02.0858.012:Mail-SMT:b3b8a0ba-ded1-4f51-a012-449cebaa67c8 Lid: 51578 Guid: b3b8a0ba-ded1-4f51-a012-449cebaa67c8 Lid: 1750 ---- Remote Context End --- - Lid: 1047 StoreEc: 0x454 [Database: Mdb02-Faile, Server: XX****.cn]
>> Mount-Database -Identity "Mdb02-Faile"
Creating new session to implicitly remote 'Mount-Database' command...
Loading of database 'Mdb02-Faile' failed. Error: Active Manager operation failed. Error: Database operation failed. Error: Operation failed with message: MapiExceptionD
abaseError: Unable to mount database. (hr=0x80004005, ec=1108)
Diagnostic context:
Lid: 65256
Lid: 10722 StoreEc: 0x454
Lid: 1494 ---- Remote Context Beg ----
Lid: 1238 Remote Context Overflow
Lid: 34760 StoreEc: 0xFFFFFDF0
Lid: 41344 Guid: b3b8a0ba-ded1-4f51-a012-449cebaa67c8
Lid: 35200 dwParam: 0x6210
Lid: 59596 dwParam: 0x940F91E8 Msg: JI20
Lid: 43212 dwParam: 0x940F91E8 Msg: JT05
Lid: 43212 dwParam: 0x940F91E8 Msg: JT08
Lid: 59596 dwParam: 0x940F91E8 Msg: WM19
Lid: 59596 dwParam: 0x940F91E8 Msg: WM20
Lid: 59596 dwParam: 0x940F91E8 Msg: WM21
Lid: 54472 StoreEc: 0x980
Lid: 42184 StoreEc: 0x454
Lid: 10786 dwParam: 0x0 Msg: 15.02.0858.012:Mail-SMT:b3b8a0ba-ded1-4f51-a012-449cebaa67c8
Lid: 51578 Guid: b3b8a0ba-ded1-4f51-a012-449cebaa67c8
Lid: 1750 ---- Remote Context End ----
Lid: 1047 StoreEc: 0x454 [Database: Mdb02-Faile, Server: XX****.cn]
+ CategoryInfo : InvalidOperation: (Mdb02-Faile:ADObjectId) [Mount-Database], InvalidOperationException
+ FullyQualifiedErrorId : [Server=XXXXX,RequestId=fa2244a8-45a3-49a9-be36-ca9735a3a0af,TimeStamp=2023/6/9 1:09:
45] [FailureCategory=Cmdlet-InvalidOperationException] 2F863AA8,Microsoft.Exchange.Management.SystemConfigurationT
asks. MountDatabase
+ PSComputerName : XX****.cn
[PS] C:\Windows\system32>Get-Mailbox -SoftDeletedMailbox
No parameter found matching parameter name 'SoftDeletedMailbox'.
+ CategoryInfo : InvalidArgument: (:) [Get-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound, Get-Mailbox
+ PSComputerName : XX****.cn