Solved

Interforest migration of SMTP addresses for Distribution Lists with SID history

Posted on 2009-05-06
5
1,122 Views
Last Modified: 2012-06-27
Experts,

I am in the process of migrating Distribution Lists from Exchange 2003 in one forest to Exchange 2007 in another. I used ADMT to bring over the groups with SID history, but the Exchange attributes (SMTP addresses) did not come over with the groups.

Does anyone know of a way to bring over the SMTP addresses (preferrably in powershell) without giving up the SID?

Max points for elegant solution. Don't suggest ADMT as I already learned ADMT does not handle Exchange attribs.
0
Comment
Question by:jmilczek
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:abhaigh
ID: 24323682
you'll need to read this

Exchange 2007 Cross Org Mailbox Migration
http://msexchangeteam.com/archive/2006/11/02/430289.aspx
0
 
LVL 2

Author Comment

by:jmilczek
ID: 24325051
I hate it when people don't read the question before posting...FAIL. I figured out a way to do it in Powershell anyway so I'll post it on here.
0
 
LVL 15

Expert Comment

by:abhaigh
ID: 24325085
excuse me for trying to help you then - I'll not bother in future
0
 
LVL 2

Accepted Solution

by:
jmilczek earned 0 total points
ID: 24325110
Powershell code attched...group scope will have to be universal (BE CAREFUL what you convert to Universal - recommend changing on source domain and testing for a while first)

$s = Get-Credential
 

get-distributiongroup -credential $s -domaincontroller "xxxx.srcdomain.local" | foreach-object {

Write-host -foregroundcolor blue "Processing..."$_.Name

$srcDG = get-distributiongroup -credential $s -domaincontroller "xxxx.srcdomain.local" $_.Name

enable-distributiongroup -domaincontroller "xxxx.destdomain.local" -Identity $_.Name

Set-DistributionGroup -domaincontroller "xxxx.destdomain.local" $_.Name -emailAddresses $srcDG.emailAddresses -EmailAddressPolicyEnabled $false

Set-DistributionGroup $_.Name -PrimarySMTPAddress $srcDG.PrimarySmtpAddress

$dstDG = get-distributiongroup -domaincontroller "xxxx.destdomain.local" $_.Name

Write-host -foregroundcolor green "Result: "$dstDG,$dstDG.PrimarySmtpAddress

}

Open in new window

0
 
LVL 2

Author Comment

by:jmilczek
ID: 24325181
Abhaigh:
Correct, if you do not blindly respond to questions, future members will find the right answer in less time. Thank you for understanding.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now