Forum Discussion
Migrating On-Prem Distribution Groups to Exchange Online in Hybrid Mode
Bhavesh Shah Nothing much has changed in the last few years.
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...
- Jason-EVJun 04, 2020Copper Contributor
TonyRedmondgreat! 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!
- spadge007Oct 08, 2020Copper Contributor
This thread has been a big help as I am planning this currently.
Would anyone be willing to share their script or know of a script which I can amend and use?
I have a hybrid environment with Exchange 2010 and 2016. 2016 installed to setup the hybrid environment. All user & shared mailboxes etc have been migrated from 2010 to Exchange Online (EOL). Eventually I would like to fully retire on-premises exchange. All objects from on-prem to EOL are synced via Azure AD Sync.
I am not proficient in PowerShell so any pointers would be a great help.