Comments on: How To Delete Orphaned Groups in Azure AD PowerShell https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/ SCCM | ConfigMgr | Intune | Windows 11 | Azure Wed, 26 Jul 2023 17:33:30 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: Jason https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/#comment-50645 https://www.prajwaldesai.com/?p=273046#comment-50645 In reply to Max.

Thanks for this extra bit of info, worked like a charm after removing licenses.

]]>
By: Schools Out https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/#comment-38191 https://www.prajwaldesai.com/?p=273046#comment-38191 Thank you exactly what i needed 🙂

]]>
By: Max https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/#comment-37176 https://www.prajwaldesai.com/?p=273046#comment-37176 In reply to Jeff Z.

In my case this error above occured because I assigned licenses by that group to the group members. After deleting all licenses (Azure Active Directory) from that group I was able to delete that group via Remove-MsolGroup command without errors.

]]>
By: Jeff Z https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/#comment-34573 https://www.prajwaldesai.com/?p=273046#comment-34573 In reply to Rahul Dixit.

Same issue here.

]]>
By: Rahul Dixit https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/#comment-31952 https://www.prajwaldesai.com/?p=273046#comment-31952 Remove-MsolGroup : You cannot delete this group.
At line:1 char:58
+ … MsolGroup -SearchString “Nidd Transport EOL users” | Remove-MsolGroup
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Remove-MsolGroup], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.GroupDeletionNotAllowedException,Microsoft.On
line.Administration.Automation.RemoveGroup

]]>
By: Magnus https://www.prajwaldesai.com/delete-orphaned-groups-in-azure-ad-powershell/#comment-31066 https://www.prajwaldesai.com/?p=273046#comment-31066 Is it possible to identity which groups are orphaned ?
I have the same problem after I run “Disabled-DistrubtionGroup” om AD-security groups.

]]>