Changing userID for Mailbox RRS feed

  • Question

  • I need to reattach a Mailbox to a different userID in order to cleanup some data, I tried using the following command _Set-Mailbox -Identity megan.connell@xyz.com -LinkedMasterAccount megan.connell@xyz.com_
    but it gives the following error, any idea on the right way/PS command to do this ? _A parameter cannot be found that matches paramter name 'linkedmasteraccount'_
    • Moved by Bill_Stewart Friday, March 15, 2019 6:50 PM This is not "scripts on demand"
    Wednesday, January 30, 2019 3:24 PM

All replies

  • Beware of the docs. They might answer your issue:

    This parameter is available only in on-premises Exchange.
    The LinkedMasterAccount parameter specifies the master account in the forest 
    where the user account resides, if the mailbox is a linked mailbox.
    The master account is the account that the mailbox is linked to.
    The master account grants access to the mailbox. You can use any value that
    uniquely identifies the master account. For example: •Name •Display name •Distinguished name (DN) •Canonical DN •GUID

    $newmaiboxaccount = Get-AdUser <userid>
    Set-Mailbox <mbname> -LinkedMasterAccount $newmaiboxaccount


    • Edited by jrv Wednesday, January 30, 2019 5:26 PM
    Wednesday, January 30, 2019 5:22 PM