A12 Start directory synchronization as‐a‐code configuration - dcasota/m365-scripts GitHub Wiki
Download the Microsoft Azure AD Connect Provisioning Agent Package from the Microsoft 365 admin center.
Go to Hybrid > Microsoft Entra Connect > Administering > Download provisioning agent.
The download is named AADConnectProvisioningAgentSetup.exe
.
You have to install the provisioning agent on a Microsoft windows server system. Install it (e.g. with /install /quiet
).
The embedded module can be imported with:
Import-Module 'C:\\Program Files\\Microsoft Azure AD Connect Provisioning Agent\\Microsoft.CloudSync.Powershell.dll'