How to remove DL's from Exchange to be managed in O365 by users?

I'm trying to find out if anyone has removed a distribution group from AD so it can be managed by users in O365?  If so, how does one remove it from the on premise exchange so it can be managed in the cloud?  I'm sure ti can be done through powershell but I do not know what he exact command would be.
RcthornbAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
You probably mean recreate it from on-prem to the cloud, not just remove?
0
RcthornbAuthor Commented:
No, they are currently sync'd from on prem using dirsync.  I want to stop them from being managed by the on prem servers and move them to the cloud with out recreating them all.  What I am looking for is a way to tell the cloud they own them.
0
Vasil Michev (MVP)Commented:
You cant. While for users we have the ImmutableID exposed, and the corresponding parameter for the Set-MsolUser cmdlet, for groups this is not the case. So while for users you can stop dirsync, change the immutableID and exclude the object from the sync to complete the process synced->cloudonly, this is not possible for groups. If you exclude them from Dirsync, they will be removed from the cloud AD.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RcthornbAuthor Commented:
Thank you for the information.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.