Solved

Interforest migration of SMTP addresses for Distribution Lists with SID history

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a User Mailbox 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 >> Mailb…
In this video we show how to create a Shared Mailbox 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 >> Sha…

762 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

21 Experts available now in Live!

Get 1:1 Help Now