How do I delete a Distribution List that is synced with an On-Premise AD, but that Distribution List cannot be found anywhere on the On-Premise AD?

Worcester Red Sox Admin 0 Reputation points
2023-09-18T23:14:03.77+00:00

1 - I have a Distribution List(AllStaff), that is synced with an On-Premise AD Server

2 - When I checked the two On-Premise AD Servers for the Distribution List(AllStaff), it cannot be found anywhere

3 - * I am not sure if the the Distribution List(AllStaff) was synced with another On-Premise AD Server that died, and no more exists, before I took up this job.

4 - HOW CAN I FORCE DELETE THE the Distribution List(AllStaff) FROM M365/AZURE?

THIS IS WHAT I GET IN M365/AZURE:

You can only manage this group in your on-premises environment...

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,695 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 105.7K Reputation points MVP
    2023-09-19T06:54:23.63+00:00

    You can use the good old MSOnline module to force the deletion:

    Remove-MsolGroup -ObjectId blabla

    Do note that if the group is indeed synced from on-premises, it will be recovered/recreated after next sync, so double checks things therein.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.