set mailbox type powershell

"Set Mailbox Type with PowerShell: Step-by-Step Guide"

By Hannah King
AD

In the realm of Microsoft Exchange and Office 365, managing mailbox types is a common task for administrators. PowerShell, with its robust scripting capabilities, simplifies this process significantly. In this guide, we'll delve into the world of setting mailbox types using PowerShell, ensuring your mailboxes are configured optimally for your organization's needs.

Understanding Mailbox Types

Before we dive into the PowerShell commands, let's quickly understand the different mailbox types:

  • User Mailbox: A standard mailbox type for regular users.
  • Shared Mailbox: A mailbox that can be accessed by multiple users for collaboration.
  • Room Mailbox: A mailbox used for scheduling meetings in a specific room.
  • Equipment Mailbox: A mailbox used for scheduling meetings in a specific piece of equipment, like a projector or conference phone.

Connecting to Exchange Online PowerShell

Before you can set mailbox types, you need to connect to Exchange Online PowerShell. Here's how:

AD
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
40 Unique Mailbox Post Ideas To Upgrade Your Home's Exterior - PlusMood
40 Unique Mailbox Post Ideas To Upgrade Your Home's Exterior - PlusMood
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

Setting Mailbox Type with PowerShell

Now that you're connected, you can set the mailbox type using the Set-Mailbox cmdlet. Here's the basic syntax:

Set-Mailbox -Identity "User" -Type "MailboxType"

Replace "User" with the mailbox you want to modify, and "MailboxType" with the type you want to set (e.g., "Shared", "Room").

Resource Center: Budget Mailboxes
Resource Center: Budget Mailboxes
Mail Boss Mail Manager PRO Security Locking Mailbox
Mail Boss Mail Manager PRO Security Locking Mailbox
One PowerShell Command Completely Rebuilds Windows 11 Start Menu (When Nothing Else Works)
One PowerShell Command Completely Rebuilds Windows 11 Start Menu (When Nothing Else Works)

Setting Mailbox Type for Multiple Users

If you need to set the mailbox type for multiple users, you can use the Get-Mailbox cmdlet to filter and pipe the results:

Get-Mailbox -Filter {LastName -eq "Doe"} | Set-Mailbox -Type "Shared"

This command will set the mailbox type to "Shared" for all users with the last name "Doe".

AD

Verifying the Mailbox Type

To verify the mailbox type, you can use the Get-Mailbox cmdlet with the -ResultSize Unlimited parameter to retrieve all mailboxes:

three mailboxes in front of a large house
three mailboxes in front of a large 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
Sierra Elite IPE Mailbox
Sierra Elite IPE Mailbox
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
a white mailbox in front of a fence with green border around it and a street light on the other side
a white mailbox in front of a fence with green border around it and a street light on the other side
Name Type
Get-Mailbox -ResultSize Unlimited | Select-Object Name, Type

Common Issues and Troubleshooting

If you're encountering issues, here are a few things to check:

  • Ensure you have the correct permissions to perform the operation.
  • Check the spelling and casing of the mailbox name and type.
  • If you're setting a shared mailbox, ensure the users have the appropriate permissions to access it.

Setting mailbox types with PowerShell is a powerful way to manage your Exchange and Office 365 environment. By understanding the different mailbox types and using the appropriate cmdlets, you can streamline your mailbox management processes.

AD
Mailbox
Mailbox
Modern & Custom Mailboxes | Dream Mailboxes
Modern & Custom Mailboxes | Dream Mailboxes
a white mailbox sitting in the middle of some bushes
a white mailbox sitting in the middle of some bushes
Faux Stone VaultBox Package Mailbox (LED Backlit)
Faux Stone VaultBox Package Mailbox (LED Backlit)
Modern Locking Aluminum Mailbox for Outdoor Use - Durable Stand
Modern Locking Aluminum Mailbox for Outdoor Use - Durable Stand
two black and white mailboxes in front of a house
two black and white mailboxes in front of a house
a mailbox that is made out of wood and has the number 4797 on it
a mailbox that is made out of wood and has the number 4797 on it
Exchange 2007 - Change a Shared Mailbox to User Mailbox
Exchange 2007 - Change a Shared Mailbox to User Mailbox
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
BOLONIA 2.0 Custom Luxury Residential Mailbox | Modern Design Premium
BOLONIA 2.0 Custom Luxury Residential Mailbox | Modern Design Premium
a row of black mail boxes sitting on the side of a road next to a forest
a row of black mail boxes sitting on the side of a road next to a forest
a mailbox with the number 726 on it in front of some palm trees
a mailbox with the number 726 on it in front of some palm trees
a screen shot of a mailbox on the side of a road with several photos showing it
a screen shot of a mailbox on the side of a road with several photos showing it
several mailbox numbers are shown in multiple pictures
several mailbox numbers are shown in multiple pictures
AD