To disable Azure AD Connect, install the MSOnline (Azure AD v1 PowerShell) module, and then run Set-MsolDirSyncEnabled -EnableDirSync $false. This will disable directory synchronization on your Azure AD tenant and will convert all synchronized objects (DirSyncEnabled = True) to cloud objects(DirsyncEnabled = False).
Disable Ad cloud sync and single sign on
Dario Bodini
1
Reputation point
I lost DC with AD connect - no way to restore but it's test environment - and I'm trying to force removal of Azure AD Connect sync and Seamless single sign-on (Enabled on 1 domain but It's the removed one). Agent warning is cleaned after a couple of weeks.
Any suggestions?
2 answers
Sort by: Most helpful
-
Marilee Turscak-MSFT 36,811 Reputation points Microsoft Employee
2021-06-17T21:19:36.56+00:00 -
Dario Bodini 1 Reputation point
2021-06-18T07:02:46.073+00:00 Thank you Marilee, but when I run connect-msolaccount, I get an error that this is not a business account. In fact it's true, It's a msdn subscription. Only Azure not O365.