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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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
I'm pretty sure it's possible with the Set-Mailbox cmdlet.
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
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 :-(
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.