I need to do a restore from a recovery storage group, of a mailbox that the AD account is no longer available.
To do this, i need to export the mailbox from the RSG to an active mailbox, which means granting my user account full access to the RSG mailbox.
So far, this is as close as I've gotten, but it does not work.
get-mailboxdatabase -identity "server\recovery storage group\mailbox database" | add-mailboxpermission "lastname, firstname" -user "domain\myaccount" -accessrights Fullaccess
Using this command I get this error:
Add-MailboxPermission : The input object cannot be bound to any parameters for
the command either because the command does not take pipeline input or the inpu
t and its properties do not match any of the parameters that take pipeline inpu
At line:1 char:105
+ get-mailboxdatabase -identity "server\Recovery storage group\mailbox databa
se" | add-mailboxpermission <<<< "lastname, firstname" -user domain\myaccount -acc
+ CategoryInfo : InvalidArgument: (server\Recove...ailbox Datab
ase:PSObject) [Add-MailboxPermission], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Microsoft.Exchange.Managemen
Assistance would be greatly appreciated!!