How do I migrating on-prem Distribution lists to Office 365 Distribution list?

Copper Contributor

We have a hybrid Exchange environment and about 300 Distribution lists that are local and I would like to migrate these to Office 365 Distribution lists. 


Does anyone have a script that can pull members of all local distribution lists with their email addresses? If I have this, I can then delete all these DL's locally and upload the csv via powershell. 


The current script I have, it does not extract members' email addresses, it only extracts their first names & and last names. This doesn't work when I try to upload the CSV via Powershell.


Thank you 

1 Reply