set mailbox type shared powershell

"Set Mailbox Type: Shared - PowerShell Guide"

By Kevin Clark
AD

In the realm of PowerShell, managing mailbox types, including shared mailboxes, is a common task for administrators. This guide will walk you through the process of setting and managing shared mailbox types using PowerShell, ensuring your Exchange Online environment remains organized and efficient.

Understanding Mailbox Types

Before we dive into setting shared mailbox types, let's quickly recap the different mailbox types in Exchange Online:

  • User Mailbox: A standard mailbox for individual users.
  • Shared Mailbox: A mailbox that multiple users can access and manage.
  • Resource Mailbox: A mailbox for booking resources like meeting rooms or equipment.
  • Room Mailbox: A mailbox for scheduling meetings in a specific location (e.g., a conference room).

Setting Mailbox Type in PowerShell

To set the mailbox type using PowerShell, you'll first need to connect to Exchange Online. Here's how:

AD
15 Creative Double Mailbox Post Ideas for Your Front Yard
15 Creative Double Mailbox Post Ideas for Your Front Yard
Exchange 2007 - Change a Shared Mailbox to User Mailbox
Exchange 2007 - Change a Shared Mailbox to User Mailbox
24 Mailbox Ideas to Spruce Up Your Curb Appeal
24 Mailbox Ideas to Spruce Up Your Curb Appeal

1. Install the Exchange Online PowerShell V2 module if you haven't already:

Install-Module -Name ExchangeOnlineManagement

PowerShell isn't scary—these everyday commands prove it
PowerShell isn't scary—these everyday commands prove it
22 Sturdy Mailbox Post Ideas for Better Security and Curb Appeal - Lost At E Minor
22 Sturdy Mailbox Post Ideas for Better Security and Curb Appeal - Lost At E Minor
a black box sitting on top of a lush green field next to a white house
a black box sitting on top of a lush green field next to a white house

2. Connect to Exchange Online:

Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com

AD

3. Set the mailbox type. Replace UserPrincipalName with the user's email address and MailboxType with the desired type (e.g., 'Shared', 'Room', 'Equipment').

26 Unique Mailbox Ideas Coastal & Nautical Style
26 Unique Mailbox Ideas Coastal & Nautical Style
three mailboxes in front of a large house
three mailboxes in front of a large house
40 Unique Mailbox Post Ideas To Upgrade Your Home's Exterior - PlusMood
40 Unique Mailbox Post Ideas To Upgrade Your Home's Exterior - PlusMood
Resource Center: Budget Mailboxes
Resource Center: Budget Mailboxes
three mailboxes with numbers on them in front of a house and grass area
three mailboxes with numbers on them in front of a house and grass area
19+ Double Mailbox Post Ideas - TopReviewsAdviser
19+ Double Mailbox Post Ideas - TopReviewsAdviser

Set-Mailbox -Identity UserPrincipalName -Type MailboxType

Managing Shared Mailboxes

Now that you know how to set the mailbox type, let's explore some common tasks for managing shared mailboxes.

AD

Adding Full Access Permissions

To allow users to access a shared mailbox, you need to grant them Full Access permissions:

two black and white mailboxes in front of a house
two black and white mailboxes in front of a house
a mailbox sitting in the grass next to a street with palm trees behind it
a mailbox sitting in the grass next to a street with palm trees behind it
a mailbox sitting in front of a set of steps with the number four on it
a mailbox sitting in front of a set of steps with the number four on it
Architectural Mailboxes Stratford Plastic Standard Mailbox Black with Post one_size | SC000BAM
Architectural Mailboxes Stratford Plastic Standard Mailbox Black with Post one_size | SC000BAM
Mailbox
Mailbox
two mailboxes are in front of a house
two mailboxes are in front of a house
three mailboxes are mounted to the side of a wooden post in front of a house
three mailboxes are mounted to the side of a wooden post in front of a house
two mailboxes are placed on top of a wooden post in the middle of a lawn
two mailboxes are placed on top of a wooden post in the middle of a lawn
LED Backlit Number Mailboxes
LED Backlit Number Mailboxes
a white and black box with numbers on it in front of some rocks, plants and trees
a white and black box with numbers on it in front of some rocks, plants and trees
a mailbox sitting on the side of a sidewalk in front of a residential house
a mailbox sitting on the side of a sidewalk in front of a residential house
a white mailbox sitting in the middle of some bushes
a white mailbox sitting in the middle of some bushes
two mailboxes are standing in the grass
two mailboxes are standing in the grass
three mailboxes are attached to a wooden post
three mailboxes are attached to a wooden post

Add-MailboxPermission -Identity SharedMailboxUserPrincipalName -User UserPrincipalNameToGrant -AccessRights FullAccess -AutoMapping $true

Removing Full Access Permissions

To revoke access, simply remove the Full Access permissions:

AD

Remove-MailboxPermission -Identity SharedMailboxUserPrincipalName -User UserPrincipalNameToRemove -AccessRights FullAccess

Listing Shared Mailboxes

To get a list of all shared mailboxes in your organization, use the following command:

Get-Mailbox -ResultSize Unlimited -Filter {(RecipientTypeDetails -eq 'Shared')}

Best Practices for Shared Mailboxes

Here are some best practices to keep in mind when managing shared mailboxes:

Best Practice Why It's Important
Use descriptive names for shared mailboxes Makes it easier to identify and manage shared mailboxes
Regularly review and update shared mailbox permissions Helps maintain security and access control
Avoid using shared mailboxes for personal storage Keeps shared mailboxes focused on their intended purpose and prevents data loss

By following these best practices and utilizing PowerShell for mailbox management, you can ensure your Exchange Online environment remains secure, organized, and efficient.

AD