Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Exchange / Convert a User Mailbox to a Shared in Exchange and Microsoft365

April 3, 2023 ExchangeMicrosoft 365PowerShell

Convert a User Mailbox to a Shared in Exchange and Microsoft365

Multiple users can access a shared mailbox in Exchange. Unlike a common user mailbox, a shared mailbox account is disabled in Active Directory and cannot be used for interactive sign-in. This article describes how to convert a common user mailbox to a shared mailbox in on-premises Exchange Server and Microsoft 365.

Contents:
  • How to Convert a User Mailbox to a Shared on Exchange Server with PowerShell?
  • Converting a User Mailbox to a Shared Mailbox in Exchange Online (Microsoft 365)

When you convert a user mailbox to a shared mailbox, only the mailbox type is changed. All existing e-mail messages and calendar items, mailbox and folder permissions, as well as mailbox rules, are retained.

You may need to convert a user mailbox to a shared one when:

  • If you want to share a mailbox with multiple users, use a shared calendar when scheduling;
  • The user leaves the organization and you want to share the mailbox contents with the remaining employees;
  • No separate license is required for a shared mailbox

How to Convert a User Mailbox to a Shared on Exchange Server with PowerShell?

In the on-premises Exchange Server 2019/2016/2013, you can convert a user mailbox to a shared mailbox using Set-Mailbox PowerShell cmdlet. Use the syntax below:

Set-Mailbox -Identity <MailboxIdentity> -Type <Regular | Room | Equipment | Shared>

Open the PowerShell console and connect to your Exchange Server. Check the mailbox type with the command:

Get-Mailbox -Identity a.shepherd| Format-Table Name, RecipientTypeDetails

PowerShell: Get-Mailbox type

This is a common user mailbox (UserMailbox).

In order to convert it to a shared mailbox, run the following command:

Set-Mailbox a.shepherd -Type Shared

The mailbox type has changed to SharedMailbox.

PowerShell: Convert a user mailbox to a shared type

To convert multiple user mailboxes to shared mailboxes at once, create a CSV file with a list of users (remember to add the Email line to the first line of the file). Then import the CSV file and change the mailbox type:

Import-CSV C:\Reports\EXCH\user_to_shared_mailbox.csv | foreach {Get-Mailbox -Identity $_.Email | Where-Object {$_.RecipientTypeDetails -eq "UserMailbox"} | Set-Mailbox -Type Shared}

Don’t delete the user account in AD because the public mailbox is associated with it.

If you want to convert a shared mailbox back to a user one, run this command:

Set-Mailbox a.shepherd -Type Regular

If you have a hybrid Exchange configuration, you will need to migrate your mailboxes to on-premises Exchange, convert them, and then bring them back to Microsoft 365.

Converting a User Mailbox to a Shared Mailbox in Exchange Online (Microsoft 365)

In Exchange Online, you may convert a user mailbox to a shared one using the Exchange Admin Center (EAC) or PowerShell.

    1. Sign in to the Exchange Admin Center;
    2. Go to Recipients –> Mailboxes;
    3. Select a user whose mailbox you want to convert;
    4. Navigate to the Others tab and click Convert to shared mailbox;
    5. Confirm mailbox conversion;
    6. If the mailbox size is less than 50 GB, you may remove its Microsoft 365/AzureAD license.
      The size of a shared mailbox without a license may not exceed 50 GB. Check the current Exchange mailbox size and clear its contents if it is more than 50 GB.

Exchange Admin Center (Microsoft 365) - convert to shared mailbox

Also, you can convert a user mailbox to a shared one using PowerShell. Connect to your Microsoft 365 tenant using the EXO PowerShell module:

Connect-ExchangeOnline

To change the mailbox type to SharedMailbox, run the command below:

Set-Mailbox –Identity a.shepherd -Type Shared

You may convert it back in the same way:

Set-Mailbox –Identity a.shepherd -Type Regular

Assign a license to the mailbox within 30 days.

0 comment
2
Facebook Twitter Google + Pinterest
previous post
How to Add, Set, Delete, or Import Registry Keys via GPO
next post
How to Uninstall or Disable Microsoft Edge on Windows 10/11

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

October 15, 2023

How to Query and Change Teams User Presence...

October 8, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Outlook Keeps Asking for Password on Windows
  • How to Manually Configure Exchange or Microsoft 365 Account in Outlook 365/2019/2016
  • FAQ: Licensing Microsoft Exchange Server 2019/2016
  • Search and Delete Emails from User Mailboxes on Exchange Server (Microsoft 365) with PowerShell
  • Fix: Microsoft Outlook Search Not Working on Windows 10/11
  • Managing Calendar Permissions on Exchange Server and Microsoft 365
  • Configure Auto-Reply (Out of Office) Message in Exchange and Microsoft 365
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top