Office 365 Shared Mailboxes

Take Free Trial of 365 CommandDesigned to Quickly Enable You to Manage Microsoft Office 365 Online Services Better: You will Save time & money with advanced Office 365 management tools, analytics, reports, security insights & more.

 

Happy Fat Tuesday,

For the, “Tech Tip Of The Week”, I am going to continue with our theme from last week regarding Office 365 Shared Mailboxes.

How do you create a shared mailbox from scratch and then add permissions365-command-logo to them?

The commands below can also be used on standard, user mailboxes.

Conversely, I will show how these permissions can be removed as well.

Create Office 365 Shared Mailbox

*This script will create a shared mailbox in Office 365*
New-Mailbox -Name “mailbox name” -Alias mailboxalias -Shared

Example:
New-Mailbox -Name “Support Help Desk” -Alias helpdesk –Shared

*The next script will change the max size of the mailbox to 5GB instead of 25GB. This will allow the mailbox to not use an Office 365 license.*
Set-Mailbox corpprint -ProhibitSendReceiveQuota 5GB -ProhibitSendQuota 4.75GB -IssueWarningQuota 4.5GB

Adding Permissions

*One of the most common uses of PowerShell for Office 365 is adding and removing permissions to mailboxes. Below are the commands to do so.*

Add Full Access Permissions:
Add-MailboxPermission “user mailbox” -User username -AccessRights FullAccess -InheritanceType All
*Please note that adding Full Access permissions to a mailbox will automatically map this mailbox to the users Outlook. If you do not wish for this to occur please add the following switch at the end to disable automapping.*
Add-MailboxPermission “user mailbox” -User username -AccessRights FullAccess -InheritanceType All -Automapping $false
Example:
Add-MailboxPermission -Identity -helpdesk -User “stracey@progenygenetics” -AccessRights FullAccess -Inheritance All -Automapping $false

Add Send As Permissions:
*Send As permissions are elevated permissions that allow a user to send email, calendar events, etc. as another user.*
Add-RecipientPermission “user mailbox” -Trustee username -AccessRights SendAs

If you need to remove permissions on a mailbox, you can do the following:

Removing Permissions

Remove Full Access Permissions:

Remove-MailboxPermission “user mailbox” -User username -AccessRights FullAccess -InheritanceType All

Remove Send As Permissions:
Remove-RecipientPermission “user mailbox” -Trustee username -AccessRights SendAs

There you have it – My Tech Tip of the Week on Office 365 Shared Mailboxes.   Let me know if you have any other questions about this or any other topic.  Talk to you next week.  I’m off to drink a Mardi Gras Grenade.