A while back, while performing a migration to Office 365, I had to convert a Distribution Group into a Room List. However, due to the nature of the migration, I didn’t have access to an on-premises Exchange to use the Shell and convert it, so I had to resort to using ADSIedit. So how do we do this using ADSIedit?
There is a reference field that specifies what a recipient type is, as far as on-premises AD/Exchange is concerned, Recipient Type Details = msExchRecipientTypeDetails.
As many other AD attributes, these are represented by an Integer value in AD. Here are all the possible values for Recipient Type Details:
Object Type
|
RecipientTypeDetails
|
Value Name
|
User Mailbox
|
1
|
UserMailbox
|
Linked Mailbox
|
2
|
LinkedMailbox
|
Shared Mailbox
|
4
|
SharedMailbox
|
Legacy Mailbox
|
8
|
LegacyMailbox
|
Room Mailbox
|
16
|
RoomMailbox
|
Equipment Mailbox
|
32
|
EquipmentMailbox
|
Mail Contact
|
64
|
MailContact
|
Mail User
|
128
|
MailUser
|
Mail-Enabled Universal Distribution Group
|
256
|
MailUniversalDistributionGroup
|
Mail-Enabled Non-Universal Distribution Group
|
512
|
MailNonUniversalGroup
|
Mail-Enabled Universal Security Group
|
1024
|
MailUniversalSecurityGroup
|
Dynamic Distribution Group
|
2048
|
DynamicDistributionGroup
|
Public Folder
|
4096
|
Public Folder
|
System Attendant Mailbox
|
8192
|
SystemAttendantMailbox
|
System Mailbox
|
16384
|
SystemMailbox
|
Cross-Forest Mail Contact
|
32768
|
MailForestContact
|
User
|
65536
|
User
|
Contact
|
131072
|
Contact
|
Universal Distribution Group
|
262144
|
UniversalDistributionGroup
|
Universal Security Group
|
524288
|
UniversalSecurityGroup
|
Non-Universal Group
|
1048576
|
NonUniversalGroup
|
Disabled User
|
2097152
|
DisabledUser
|
Microsoft Exchange
|
4194304
|
MicrosoftExchange
|
Arbitration Mailbox
|
8388608
|
ArbitrationMailbox
|
Mailbox Plan
|
16777216
|
MailboxPlan
|
Linked User
|
33554432
|
LinkedUser
|
Room List
|
268435456
|
RoomList
|
Discovery Mailbox
|
536870912
|
DiscoveryMailbox
|
Role Group
|
1073741824
|
RoleGroup
|
Remote Mailbox
|
2147483648
|
RemoteMailbox
|
Team Mailbox
|
137438953472
|
TeamMailbox
|
As such, all I had to do was locate the Distribution Group in AD, update its msExchRecipientTypeDetails attribute to 268435456 and wait for DirSync to replicate the change.
For those who use PowerShell. Here is a hash table for your scipts:
$RecipientTypeDetails = [ORDERED]@{1=”UserMailbox”; 2=”LinkedMailbox”; 4=”SharedMailbox”; 8=”LegacyMailbox”; 16=”RoomMailbox”; 32=”EquipmentMailbox”; 64=”MailContact”; 128=”MailUser”; 256=”MailUniversalDistributionGroup”; 512=”MailNonUniversalGroup”; 1024=”MailUniversalSecurityGroup”; 2048=”DynamicDistributionGroup”; 4096=”Public Folder”; 8192=”SystemAttendantMailbox”; 16384=”SystemMailbox”; 32768=”MailForestContact”; 65536=”User”; 131072=”Contact”; 262144=”UniversalDistributionGroup”; 524288=”UniversalSecurityGroup”; 1048576=”NonUniversalGroup”; 2097152=”DisabledUser”; 4194304=”MicrosoftExchange”; 8388608=”ArbitrationMailbox”; 16777216=”MailboxPlan”; 33554432=”LinkedUser”; 268435456=”RoomList”; 536870912=”DiscoveryMailbox”; 1073741824=”RoleGroup”; 2147483648=”RemoteMailbox”; 137438953472=”TeamMailbox”}
Example:
$RecipientTypeDetails.1
User Mailbox
$RecipientTypeDetails.128
MailUser
Thanks for the post. Just wanted to add that 34359738368 is a Remote Shared Mailbox.