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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason CrawfordTransport NinjaCommented:
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

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RaphaelCAAuthor Commented:
Yes please close it. Thank so very much Jason for your help.
RaphaelCAAuthor Commented:
The solution performed satisfactory. I could not use all the commands  I used what I could to get the result I wanted.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.