msExchRecipientTypeDetails

Glenn Maxwell 12,336 Reputation points
2021-11-11T13:39:56.347+00:00

Hi All

I am using exchange 2016 hybrid environment. i was having users who were created in onprem and migrated to cloud. These users were then disabled in AD and their license was revoked and these users were converted to shared mailbox. Now these users came back and they are enabled back in AD, their license is added but in exchange online i still see them as shared mailbox. I want to convert these shared mailboxes to regular mailboxes. i have used the below syntax to fetch the shared mailboxes having license but i am unable to fetch it.

Get-MsolUser -Synchronized -Verbose | where{$.MSExchRecipientTypeDetails -eq "34359738368" -and $.isLicensed -eq $true}

When i check back in onprem AD i can see MSExchRecipientTypeDetails as 2147483648

I am not sure how to fetch shared mailboxes in exchange online having e5 licenses assigned to them so that i can convert to regular mailboxes.

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,735 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,785 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.
2,221 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 152.3K Reputation points MVP
    2021-11-11T13:50:17.543+00:00

    Use Exchange Online Powershell and and msol PS module will get the ones licensed.

    Get-ExoMailbox -ResultSize unlimited -RecipientTypeDetails SharedMailbox | get-msoluser | ?{$_.IsLicensed -eq $true } 
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.