You will want to follow the steps in this article:
Which covers running the command
Set-MsolDirSyncEnabled -EnableDirSync $false
Which will disassociate the Azure AD tenant from your Azure AD Connect installation. Note that you don't need to have Azure AD Connect still in existence, the command is part of the MSOnline PowerShell module.
If this answers your question, please accept the answer.
Hi @Eric Woodruff @JamesTran-MSFT
Thanks for your help, I successfully disabled AD connect.
However I still have two "Mail enabled security" groups I cannot delete.
I was waiting with follow up question couple of days in case they will disappear after some reconciliation task..
But no.
Any suggestions?
Thanks
Peter
@Peter Vrba
Thank you for following up on this and I apologize for the delayed response!
When it comes to removing mail enabled security groups, have you tried using
Remove-DistributionGroup -Identity "Temporary Staff"
? For more info - Remove-DistributionGroup.If you're running into any issues with this command or receive any error messages, please let me know.
Thank you for your time and patience throughout this issue.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.