A. Create a new Shared Mailbox
Type in the following cmdlet:
New-Mailbox -Name <Maibox Name> -Alias <Alias> -OrganizationalUnit "<OU path>" -Database "<Database>" -UserPrincipalName <E-mail Address> -Shared
And give the appropriate permissions to the user
Add-MailboxPermission <Mailbox Name> -User "<domain\username>" -AccessRights FullAccess
Add-ADPermission <Mailbox Name> -User "<domain\username>" -ExtendedRights Send-As
For example, I will create a new mailbox called Info and setup user Secretary to have access.
New-Mailbox -Name Info -Alias info -OrganizationalUnit "mydomain.local/myCompany/myDepartment" -Database "DB1" -UserPrincipalName info@mycompany.gr -Shared
Add-MailboxPermission Info -User "mydomain\secretary" -AccessRights FullAccess
Add-ADPermission Info -User "mydomain\secretary" -ExtendedRights Send-As
Full detailed syntax and parameters are in this Microsoft link.
B. Convert a User Mailbox to a Shared one
Type in the following cmdlet:
Set-Mailbox "<Maibox Name>" -Type shared
And give the appropriate permissions to the user as well
Add-MailboxPermission <Mailbox Name> -User "<domain\username>" -AccessRights FullAccess
Add-ADPermission <Mailbox Name> -User "<domain\username>" -ExtendedRights Send-As
For example, let’s suppose that we have created a user mailbox called Helpdesk and we need to convert it to a shared mailbox and give access right to user Operator.
Set-Mailbox "Helpdesk" -Type shared
Add-MailboxPermission Helpdesk -User "mydomain\operator" -AccessRights FullAccess
Add-ADPermission Helpdesk -User "mydomain\operator" -ExtendedRights Send-As
Full detailed syntax and parameters are in this Microsoft link.
The last two commands about access and send-as permissions can be configured from EMC gui, by selecting the mailbox and clicking on “Manage Send As Permission..” or “Manage Full Access Permission…” at the right pane of the window.