mailbox or dl

Glenn Maxwell 10,186 Reputation points
2023-04-28T05:36:35.14+00:00

Hi All

I have email address lets say abc@contoso.com From PowerShell i want to know whether it is a regular mailbox or shared mailbox or DL or Microsoft 365 group or mail enabled security group. Can anyone help me with powershell syntax to get this information.

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,244 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,914 questions
{count} votes

Accepted answer
  1. Aholic Liang-MSFT 13,821 Reputation points Microsoft Vendor
    2023-04-28T08:07:51.9966667+00:00

    Hi @ Glenn Maxwell,

    You can refer to the following command to get the mailbox type for an email address in the Exchange Online powershell:

    Get-Recipient -Identity  distribution1@contoso.onmicrosoft.com | select Name, PrimarySmtpAddress,RecipientTypeDetails
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful