Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Interforest migration of SMTP addresses for Distribution Lists with SID history

Posted on 2009-05-06
5
Medium Priority
?
1,144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
In this video we show how to create a mailbox database 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 Servers >> Data…
how to add IIS SMTP to handle application/Scanner relays into office 365.

609 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