Forum Discussion
Migrating On-Prem Distribution Groups to Exchange Online in Hybrid Mode
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.
TonyRedmond 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?
- TonyRedmondFeb 27, 2020MVP
Bhavesh Shah Nothing much has changed in the last few years.
- AusSupport180Feb 27, 2024Brass Contributorstill the same?
- Summer1229May 09, 2022Copper Contributor
Thanks for sharing this information.
We are trying to migrate thousands of DL's based on Business units. I am sure this will be very helpful. Will be trying some test with few DL's and see how that goes.
- Jason-EVJun 04, 2020Copper Contributor
TonyRedmondHi 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?
Get-DistributionGroupMember ???
And then the corresponding PS-online command to create the DG with the CSV list of users?
Maybe I missed it above but thanks!
Jason
- TonyRedmondJun 04, 2020MVP
Get-DistributionGroupMember -Identity MyGroup | Select DisplayName, PrimarySmtpAddress | Export-CSV -NoTypeInformation c:\temp\DL.csv
Something like that...