Solved

Interforest migration of SMTP addresses for Distribution Lists with SID history

Posted on 2009-05-06
5
1,123 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create a Distribution Group 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 Recipients >>…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

776 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