finding distribution groups, and group membership via powershell, without exchange server on premise.

Bartender_1
Bartender_1 used Ask the Experts™
on
After removing our on premise exchange server, we no longer have the ability to edit the "Send on Behalf of" or "Send As" properties of our Active Directory synced distribution lists or mail enabled security groups.
If we create a distribution list, or group in Office 365, we can edit these fields in Office 365.  
Currently, we are looking at deleting our on premise groups/distribution lists, and recreating them in Office 365. (If there is a better way, without using 3rd party tools, please let me know!)

I can use the powershell command "get-adgroup" to find the groups. (I plan on doing distribution lists first, and then mail enabled security groups later, as I have to verify they're not in use for local shares.) and I can use "get-adgroupmember" to find the members of the group.

For ease of creating the new distribution lists in the cloud, it would be nice to have the distribution group name, and email, followed by all members of the group in a file. (Or files.) So that it can be read, while creating the new groups in Office 365.

What is the easiest way to accomplish this?

Thanks for any assistance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Solutions Architect
Top Expert 2016
Commented:
hello,

there is 2 ways of doing so

you can do delete your onprem and recreate again using this method http://blogs.catapultsystems.com/thernandez/archive/2015/09/16/migrate-distribution-groups-from-exchange-on-premise-to-exchange-online/


OR divorce distribution group via AADconnect
https://www.linkedin.com/pulse/how-you-can-remove-last-exchange-server-after-migrating-jian-an-lim/

AADconnect will need to reconfigure but i have done this multiple times and it works like a charm.

make sure your password is synced so during that period, user will not notice obvious down time.
the speed of recovery depends on how fast the dirsync STOP completely (it take at least 3 hours above)
Bartender_1Microsoft Network Administrator

Author

Commented:
I think we're going to delete and recreate the groups on a "as needed" basis. Thanks for sharing these options!

Bartender_1

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial