11-07-2016 08:05 AM
11-07-2016 08:05 AM
I have come across a number of articles on migrating distribution groups to Office 365 when you're not in hybrid mode. My situation is having hundreds of DLs on my on-prem Exchange environment that I need to move to the cloud. We don't want these converted to Office 365 groups, we want true distribution groups in the cloud. Is this possible with scripting or some other method? I really don't want to have to re-create these by hand.
11-14-2016 01:08 AM
To make sure that I understand what you want to do: you have a set of DLs on-premises and you now want to move them to Exchange Online without changing any of the members. You don't want to create new Office 365 Groups based on the DLs - you just want to use the DLs as they are.
Do you have a hybrid environment? If so, you can use AADConnect to synchronize the on-premises DLs with AAD so that they appear in the cloud GAL. The groups will have to be managed on-premises because they are "owned" by that environment.
If you don't want to synchronize the groups, you can recreate the DLs in the cloud. This is a manual process as there is no tool that I know of to move a DL from one environment to the other. However, it's easy enough to use PowerShell to export DL membership to something like a CSV file (on-premises) and then read that CSV file to create the DL in the cloud.
09-24-2017 02:19 PM
Can you please elaborate more on, "how to export DL (on-premises) and then create in Cloud using PowerShell"?
09-25-2017 05:50 AM
Use the Get-DistributionGroupMember to get the membership of the on-prem DL and then create the new DL inside Exchange Online (a cloud object) before populating its membership (Add-DistributionGroupMember) with the objects you fetched from the original DL. You can connect PowerShell to both the on-prem and cloud environments at the same time, so you can run these commands in a single session.
08-16-2018 06:04 AM - edited 08-16-2018 06:35 AM
Hello @Tony Redmond,
Sorry, your answer is quite old now but I have a question regarding the situation.
I'm in a similar situation with the customer here:
- Made a hybrid deployment to migrate from Exchange 2010 to Office 365;
- Have AAD Connect (and ADFS)
- Migrated almost all users (and shared mailboxes, etc.)
- The end goal is to shut down the Ex10 server since I've told uninstalling it is a terrible idea. We'll be managing things like SMTP Addresses from the AD Attribute Editor.
Now about the DGs: We've sync'ed them all with AADC. We can see them in o365 AC and ExO but not manage them as expected.
If I would like to manage them there, can I simply remove the DG OU from AADC Sync?
EDIT: Thinking about it, I've realized doing what I've described above should change the ID of the DG since it isn't a migrated object but a created one. Therefore, I suppose people who use Autocomplete (meaning everybody ^^) will be screwed.
Users will have to get the DG from the Online GAL, correct?
Thanks in advance for your answer
08-16-2018 06:30 AM
If you have a bunch of DLs on-premises, you will need to:
1. Recreate them in the cloud.
2. Delete them on-premises.
If you don't do this, you'll end up having to keep an on-premises server to manage the objects that remain there. It is easy enough to script the recreation and deletion with PowerShell. You'll need to have a session connected to both on-premises and the cloud when you run it.
01-17-2019 08:55 AM
So in order to completely migrate to 365 there is no way to move the on prem distro's 365 exchange with out creating new distro's in cloud. In other words the distro sync'd by AD will go away once you decomission the on prem exchange?
As of now if i create a distro in the cloud external users cannot reach that email group. ( my MX records still point on Prem ) I have a second domain in my 365 exchange which does have the mx records point to the 365 exchange and they are working fine so i am assuming that when i change my mx records to point to 365 those " in cloud" distro's will work just fine.
Just want to ensure that i'm understanding the reading in this article correct before proceeding. I've got just about every mailbox created and will be left with room mail boxes and distro's to finish this migration. My goal is to decomission the on prem exchange server and just leave a mail relay .
01-18-2019 02:04 AM
You should recreate the DLs in the cloud and then remove the on-premises equivalent. People often script this removal so that the new cloud DL receives the old email address used for the on-prem DL. You could do it like this:
Create the new DL in the cloud. Set the new DL to be hidden from address lists so no one can see it. Give it a temporary email address.
Add the members to the cloud DL.
On-premises, update the old DL to give it a new email address and hide it from address lists.
After the on-premises change synchronizes to the cloud, update the new DL to give it the original email address and unhide it from address lists. Clients will now see the new DL and begin using it.
After a week or so, when you are sure that everything works as expected, you can delete the old DL from on-premises AD.
Email addresses always need to be resolvable before delivery can occur. Once you switch the MX records, the cloud DLs can be used.
02-04-2019 12:50 PM
Thanks Tony. Would we need to add an X500 address to the online group so DLs cached that are deleted in Outlook will be recognized as the newly created ones?
04-17-2019 11:01 AM
Tony, thank you for your insight on this so far - I am unfamiliar with this last comment about the X500 addresses.
As a part of this process would I want to change the existing X500 address along with the DL's mail address, and then use those on the new Online DL? Or would I be creating a new X500 address on the Online replacement DL?
04-17-2019 11:41 AM
The X.500 address is from the old DL. Email sent to the old DL will have the X.500 address in the header, so if you move the X.500 address to the new DL it means that Exchange will be able to deliver replies to the messages sent to the old DL.
04-17-2019 11:48 AM
04-18-2019 01:03 AM
@Jerryn Bunnell I don't know how you have things set up but generally speaking cloud objects do synchronize back to on-premises AD.
07-24-2019 02:35 PM
I was reading an article when searching how to do this and it claimed if you went to office 365 exchange admin, went to groups and in the upper right clicked on upgrade distribution lists it would let you move them however when I click there it doesn't show any of my on prem DLs.
07-24-2019 02:48 PM
@Boe Dillard Your DLs might not meet the criteria for conversion. For example, if they have any nested members, you can't convert the DLs with EAC.
07-24-2019 02:51 PM
thanks, it may be something like that. There aren't any nested members but as you say there might be something about them. I created a new group about an hour ago, it just had 2 names in it but it wouldn't let me migrate it. I'll ask MS to see if they can figure it out.
07-24-2019 02:53 PM
See https://docs.microsoft.com/en-us/office365/admin/manage/upgrade-distribution-lists?view=o365-worldwi... for more information...
07-24-2019 03:36 PM - edited 07-24-2019 03:39 PM
@Tony Redmond Thanks - that is the article I was looking at. I opened a case with MS but he got distracted by something else. He seemed to think since it was synced I shouldn't worry about it which might be valid but I'm trying to avoid the day that their exchange server stops working and it depends on anything that is on prem. I'll open another case.
I did get this command to find out if it is Mastered on Premise or hosted in office 365
get-recipient -identity email@example.com |FL
The ones I'm upgraded are groups I created in Exchange. I wonder if those eligible ones (ones I don't see any of) are ones people created in their outlook.
02-25-2020 03:19 PM
Reading through the posts here is some short code as I understand the process of migrating an OnPrem DL to a Cloud DL:
1. Get the x500 LegacyExchangeDN from the DL
2. Get the members of the DL
3. Remove the DL
1. Create the DL
2. Add Members to the DL
3. Add Alias x500 equal to the LegacyExchangeDN from above
02-27-2020 08:17 AM
@Tony Redmond Is this still valid? We are in hybrid scenario for last few year and we have almost moved all mailbox and DL are dir sync. is there any better option available to move DL to EXO only?
05-14-2020 12:21 PM
@djreit I am going to try your method and see if this works for me. I'm at the same spot as everyone else on this thread. Please don't let this die. This is more involved than it seems. Sorry, I'm a newbie when it comes to MS Exchange so I'm learning this on the fly.
We are in a hybrid set up. Trying to take existing DLs on our on-prem environment to O365. While we aren't doing away with our on-prem environment any time soon, DLs must be in the cloud soon so users can have the ability to manage them again as they did prior.
Anything learned since the last post is greatly appreciated.
05-14-2020 12:23 PM
06-04-2020 02:21 PM - edited 06-04-2020 02:23 PM
@Tony RedmondHi Tony and thanks for all the great info you've provided in this thread.
I'm getting ready to do a migration this weekend it looks like (have a Ex2010 Hybrid /O365 setup) and all my user's mb's are already up in the cloud but we have a lot of on-prem DG's.
Is there a PS command to pull the list of users for a specific group and save to a CSV?
And then the corresponding PS-online command to create the DG with the CSV list of users?
Maybe I missed it above but thanks!
06-04-2020 02:24 PM
Get-DistributionGroupMember -Identity MyGroup | Select DisplayName, PrimarySmtpAddress | Export-CSV -NoTypeInformation c:\temp\DL.csv
Something like that...
06-04-2020 02:34 PM
@Tony Redmondgreat! thanks for fast reply! I'll give that try right now. By any chance do you know what it is for writing it or the Exchange Online side?
If not I'll open a case. Thanks again!