CONVERT EXCHANGE 2010 DISTRIBUTION GROUP TO SHARED MAILBOX

RaphaelCA
RaphaelCA used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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

Author

Commented:
In Step 2 the users.txt is empty. Is this normal?
[PS] C:\Windows\system32>    Add-MailboxPermission SurfaceLEC@allynintl.com -User $user.primarysmtpaddress -AccessRights  fullaccess
Cannot bind argument to parameter 'User' because it is null.
    + CategoryInfo          : InvalidData: (:) [Add-MailboxPermission], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-MailboxPermission

Author

Commented:
Yes please close it. Thank so very much Jason for your help.

Author

Commented:
The solution performed satisfactory. I could not use all the commands  I used what I could to get the result I wanted.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial