I have one Distribution Group TestDG and three mailboxes mb01, mb02, mb03. I want to give Send on Behalf Permission on a Distribution Group to these 3 mailboxes.
I've tried to set it like below for every mailbox but next one always overrides the previous one.
Set-DistributionGroup "TestDG" -GrantSendOnBehalfTo mb01
Set-DistributionGroup "TestDG" -GrantSendOnBehalfTo mb02
Set-DistributionGroup "TestDG" -GrantSendOnBehalfTo mb03
Is it possible to give this permission to multiple mailboxes? if there is a way to do this I'd really appreciate any help!