[SOLVED] Exchange - Shared Mailbox - Manager - powershell

Jester400 21 Reputation points
2022-02-07T19:49:41.303+00:00

Hi.

I've been looking how to setup the manager in a Shared mailbox with PowerShell but I haven't found how to do it.

I can set-up this with the EAC (Organization -> Manager) but I would like to do it in Powershell, it's possible?

Thanks.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,449 questions
0 comments No comments
{count} votes

Accepted answer
  1. AdamMillgate 76 Reputation points
    2022-02-15T11:08:56.063+00:00

    The Manager property is set on the user object, so your command should be:

    Set-User -Identity <Shared_Mailbox> -Manager <Manager_Identity>  
    

    Ref: https://learn.microsoft.com/en-us/powershell/module/exchange/set-user?view=exchange-ps


4 additional answers

Sort by: Most helpful
  1. Rich Matheisen 45,671 Reputation points
    2022-02-07T20:49:27.277+00:00

    I'm pretty sure it's possible with the Set-Mailbox cmdlet.

    0 comments No comments

  2. Jester400 21 Reputation points
    2022-02-08T18:30:34.253+00:00

    I thought the same but now I'm not sure or maybe the option in PowerShell is a bit hidden and I'm not able to find it


  3. Jester400 21 Reputation points
    2022-02-15T09:02:10.5+00:00

    I've had a busy week .

    I find the cmdlet Set-Mailbox but seems that this command can not managed the Manager.

    You have given me a clue with the Set-ADUser then I tried to use the Get-ADgroup, it seems that I can see the manager with the command Get-ADgroup -Identity MAILBOX - Properties ManagedBy.

    Now I have another problem, I'm not sure 100% but seems that Get-ADgroup can not find disabled groups at least I don't find any other reason. All shared Mailbox have their AD Group Disabled.

    I'm lost :-(


  4. Jester400 21 Reputation points
    2022-02-17T11:04:30.767+00:00

    First. Thanks to all.

    Finally with your advices I've achieved consult the manager.

    $newmanager = (Get-ADUser xxxxxx).DistinguishedName

    And set-up or update.

    Set-User -Identity <Shared_Mailbox> -Manager <Manager_Identity>

    Excuse my English.

    0 comments No comments