Exchange Shell command to get send behalf on rihgts

Ths command (Get-Mailbox | Get-MailboxPermission -User $_.allusers | fl identity,user, accessrights) is giving all users' all access rights on the other users. I need to get further. In the mailbox properties - Mail Flow settings - Delivery Options - Send on behalf there is rights. How can I get a list of this (send on behalf) right for all users.
Thank you
certuranAsked:
Who is Participating?
 
AkhaterCommented:
Get-Mailbox | ?{ $_.GrantSendOnBehalfto -ne ""}

will give you all mailboxes on which send on behalf is set.

0
 
AkhaterCommented:
going a bit further

Get-Mailbox | ?{ $_.GrantSendOnBehalfto -ne ""} | fl name,GrantSendOnBehalfto

will give you each mailbox name and who has the GrantSendOnBehalfto  right on it

is this what you are looking for ?
0
 
Mahmoud SabryCommented:
try this command
Get-Mailbox | fl DisplayName,GrantSendOnBehalfTo
0
 
certuranAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.