Link to home
Start Free TrialLog in
Avatar of RaphaelCA
RaphaelCA

asked on

CONVERT EXCHANGE 2010 DISTRIBUTION GROUP TO SHARED MAILBOX

I can you provide instructions on how to convert exchange 2010 distribution group to shared mailbox. I also need to know how to create an x500 address.
Avatar of Jason Crawford
Jason Crawford
Flag of United States of America image

1. First gather and document the legacyExchangeDn value of the Distribution Group (DG) you want to convert:

Get-DistributionGroup <group email address> | fl legacyexchangedn

Open in new window

2. Assuming you want all current members of the group to have access to the shared mailbox you will create, export the member list of the group and cache in the $users variable:

$users = Get-DistributionGroupMember <group email address>
$users.primarysmtpaddress | Out-File users.txt

Open in new window

3. After verifying the contents of users.txt is correct, delete the Distribution Group:

Remove-DistributionGroup <group email address> -Confirm:$false

Open in new window

4. Without closing Exchange Mangement Shell, create a new shared mailbox using EMC or EMS (I assume you know how to do this part).

5. In the same EMS session you were working from previously, run this command:

foreach ($user in $users) {
    Add-MailboxPermission <shared mailbox email address> -User $user.primarysmtpaddress -AccessRights fullaccess
}

Open in new window

6. If you accidentally closed the EMS session that had the $users variable, run this command instead:

foreach ($user in (Get-Content users.txt)) {
    Add-MailboxPermission <shared mailbox email address> -User $user -AccessRights fullaccess
}

Open in new window

7. Save the legacyExchangeDn value saved in step 1 as an x500 proxy for the shared mailbox to maintain internal routing:

Set-Mailbox <shared mailbox email address> -EmailAddresses @{add='x500:insertlegacyexchangedn'}

Open in new window

Avatar of RaphaelCA
RaphaelCA

ASKER

In Step 2 the users.txt is empty. Is this normal?
ASKER CERTIFIED SOLUTION
Avatar of RaphaelCA
RaphaelCA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes please close it. Thank so very much Jason for your help.
The solution performed satisfactory. I could not use all the commands  I used what I could to get the result I wanted.