Get-Mailbox | Set-Mailbox -GrantSendOnBehalfTo can also apply filters in Get-Mailbox cmdlet to select particular set of users. The following command grants send on behalf permission for “Morgan” to all the mailboxes. We can use the exchange management powershell cmdlet Get-Mailbox to get specific set of user mailboxes and pipe the results to Set-Mailbox cmdlet. Exchange Server 2010 includes numerous Exchange Management Shell cmdlets, but it also provides some PowerShell scripts that are designed to accomplish more complex tasks. Grant Send-on-Behalf permission for multiple user mailboxes Get-Mailbox "Kevin" | Select -ExpandProperty GrantSendOnBehalfTo | Select Name,Parent You can check the applied permissions by using below command.
Set-Mailbox "Kevin" -GrantSendOnBehalfTo above commands add permission with existing send on behalf permissions and it does not overwrite the existing permissions (this is required for most cases). Set-Mailbox "Kevin" -GrantSendOnBehalfTo can also grant permission for multiple users by giving user names as comma separated values. The following command grants “ Morgan” send on behalf permission to Kevin’s mailbox. – The user to be granted the send on behalf permission. Set-Mailbox "" -GrantSendOnBehalfTo – The name of the mailbox user on which the send on behalf permission to be added. Use the below command to set send on behalf permission.
Note: Instead of using “myaliasname”, you can use the “Display Name” attribute of the mailbox.We can set or grant send on behalf permission for a exchange mailbox user using the powershell cmdlet Set-Mailbox with the parameter GrantSendOnBehalfTo. Get-Mailbox myaliasname | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount | Export-CSV C:\mailboxessize.csv Get-Mailbox myaliasname | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount Note: You can obtain the database name by using the command: Get-MailboxDatabase Get-Mailbox -server -database “Mailbox Database 0154525136” | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount | Export-CSV C:\mailboxessize.csv Get-Mailbox -server -database “Mailbox Database 0154525136” | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount Report mailboxes size in a specific Exchange server database: Get-Mailbox -server servername | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount | Export-CSV C:\mailboxessize.csv Get-Mailbox -server servername | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount .E20. Report mailboxes size in a specific Exchange server: Get-Mailbox | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount | Export-CSV C:\mailboxessize.csv You can copy your CSR command from the Information box on the right. Fill in the requested information, then click Generate. Get-Mailbox | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount Create a CSR with the Exchange 2010 Powershell. Report mailboxes size in the entire Exchange organization:
The following article describe how to create Mailboxes size report/s in Exchange 2010. The Article below is from the following website : If you want to know the individual size or everyone’s mailbox size then the following commands will be able to show you the mailbox size and export the data using. Exchange 2010 Mailboxes Size Report – Powershell