Send on behalf for Multiple users on a mailbox

Posted by Michel Klomp on Geeks with Blogs See other posts from Geeks with Blogs or by Michel Klomp
Published on Tue, 15 Mar 2011 14:43:02 GMT Indexed on 2011/03/15 16:11 UTC
Read the original article Hit count: 249

Filed under:

the following snippet can be used to add more than one user to the grantsendonbehalfto property with Powershell and the Exchange Management Shell

get-mailbox dummy |set-mailbox -grantsendonbehalfto “testuser3?

$a = get-mailbox testuser2 | select-object grantsendonbehalfto
$b = get-mailbox dummy| select-object grantsendonbehalfto

$a.grantsendonbehalfto += $b.grantsendonbehalfto[0]

get-mailbox testuser2 |set-mailbox -grantsendonbehalfto $($a.grantsendonbehalfto)

© Geeks with Blogs or respective owner