mddg
asked on
Exchange 2007 Shell - granting full access to RSG mailbox
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
t.
At line:1 char:105
+ get-mailboxdatabase -identity "server\Recovery storage group\mailbox databa
se" | add-mailboxpermission <<<< "lastname, firstname" -user domain\myaccount -acc
essrights fullaccess
+ CategoryInfo : InvalidArgument: (server\Recove...ailbox Datab
ase:PSObject) [Add-MailboxPermission], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Micros oft.Exchan ge.Managem en
t.RecipientTasks.AddMailbo xPermissio n
Assistance would be greatly appreciated!!
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
t.
At line:1 char:105
+ get-mailboxdatabase -identity "server\Recovery storage group\mailbox databa
se" | add-mailboxpermission <<<< "lastname, firstname" -user domain\myaccount -acc
essrights fullaccess
+ CategoryInfo : InvalidArgument: (server\Recove...ailbox Datab
ase:PSObject) [Add-MailboxPermission], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Micros
t.RecipientTasks.AddMailbo
Assistance would be greatly appreciated!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This user is no longer in AD or has an active mailbox in the exchange storage group. I believe what needs to be done is find a way to re-link the mailbox in the RSG to a new mailbox so that it can be restored. As of yet, i cannot determine a way of doing this.