A fully managed end-to-end service for digitally signing code, documents, and applications. (formerly Trusted Signing)
To disable directory synchronization for your tenant, you can use the Microsoft Graph PowerShell module. Since you mentioned that Azure AD Connect was uninstalled and you cannot use Set-MsolDirSyncEnabled, you can follow these steps:
- Install Microsoft Graph PowerShell if you haven't already. You can find instructions on how to install it in the Microsoft documentation.
- Connect to Microsoft Graph using the following command:
Connect-MgGraph -Scopes 'Organization.ReadWrite.All' - Disable directory synchronization by running the following command:
$organizationId = (Get-MgOrganization).Id $params = @{ onPremisesSyncEnabled = $False } Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params - Check the status of directory synchronization to ensure it has been disabled:
This command should return False once the deactivation process is complete, which may take up to 72 hours depending on the number of objects in your tenant.Get-MgOrganization | Select OnPremisesSyncEnabled
Make sure to monitor the status periodically until it reflects the change.
References: