"New-MailboxRestoreRequest" issue with hard deleted O365 hybrid account
In hybrid mode with users still managed by on-prem AD with some mailboxes migrated to O365. A users synced O365 account was hard delted by mistake and the user was resync'd with a new O365 mailbox which has been in use.
"Get-Mailbox -SoftDeletedMailbox" returns the deleted mailbox but running the recover option returns the below error as expected
This mailbox cannot be restored with the Undo-SoftDeletedMailbox cmdlet since the user that was associated with the mailbox has been permanently deleted. You can however recover the contents of this mailbox using the New-MailboxRestoreRequest cmdlet.
Ran the New-MailboxRestoreRequest but I get a source database error as per below, which is a parameter I thought I didn't need as the users O365 account/mailbox was deleted, not one located on the on prem Exchange.
New-MailboxRestoreRequest -sourcestoremailbox "Jaxxx Maxxxxxx_68eeaca40f" -TargetMailbox "James Maxxxxxx"
Cannot process command because of one or more missing mandatory parameters: SourceDatabase.
PS C:\> $InactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity 44d9503c-8b4d-43c6-b60b-95
PS C:\> $InactiveMailbox