Hello Christine,
Thank you for posting question on Microsoft Windows Forum!
Based on the issue description as well as the error message "Directory synchronization is enabled for this directory, but has not yet taken effect" occurring during the initial installation or reconfiguration of Microsoft Entra Connect (formerly Azure AD Connect) which might indicate that backend Microsoft Entra ID (Azure AD) services have registered that directory synchronization should be active, but the background provisioning and propagation across Microsoft's global infrastructure are not fully ready yet.
If you recently enabled directory sync, toggled it off and on, or migrated the sync agent from one tenant to another, Microsoft’s backend can take anywhere from a few hours up to 72 hours to fully register and apply the change. In case, the environment is newly created or sync was recently re-enabled. The suggested action here is to wait a bit and try running the configuration wizard again later. On the other hand, if you recently disabled directory synchronization on this tenant, Microsoft Entra ID puts the directory into a background cleanup/provisioning state. You cannot immediately re-initiate a full sync until the background workflow clears completely. Give it time to fully process the state change. Attempting to force configurations while the backend is locked in a transition phase will continue to throw this exception.
In case, waiting (at least 72 hours) does not resolve it. In the Microsoft 365/Entra admin center under “Directory sync status” or Azure AD Connect Health to verify whether sync is pending or erroring and checking the Azure AD service account to confirm the Azure AD/global admin account used by Connect still exists, is not disabled/expired, and can log in. Also, on the AD Connect server, verify the Microsoft Azure AD Sync (or AAD Connect Sync) service is running. Restart it if needed.
If the above information is helpful. It is appreciated to consider clicking "Accept Answer". Should you have more questions, feel free to leave a message.