Latest guidelines on full configuration migration is to take a backup of the SQL DB for the original AAD Connect server, stand that up in another SQL DB instance (SQL express in your case), and install AAD Connect using the /UseExistingDatabase flag on AADConnect.exe, as outlined here: https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-install-existing-database . Given this functionality exists and is far more thorough than just moving custom sync rules, the recommended way to move configurations. You can also use the /UseExistingDatabase flag with a version that is older than the installer you’re using – ie: you can handle a swing upgrade using a database from a server on a much older version.
Earlier migrating your AAD Connect primary sync server configuration to your staging server was a simple matter of using the Get-ADSyncServerConfiguration and Set-ADSyncServerConfiguration cmdlets provided as part of the ADSync module. However, in the most recent versions of AAD Connect (v 1.1.751 and later) the Get-ADSyncServerConfiguration cmdlet still works, however the Set-ADSyncServerConfiguration cmdlet returns a warning that use of the cmdlet is now unsupported…
Before bringing the new server in production, you consider:
Running the Documenter tool to compare the configuration on both servers.
Running the CSAnalyser script to confirm the objects that the new server will be exporting to Azure AD.
- Start a cmd prompt and go to %ProgramFiles%\Microsoft Azure AD Sync\bin
- Run: csexport "Name of Connector" %temp%\export.xml /f:x The name of the Connector can be found in Synchronization Service. It has a name similar to "contoso.com – Azure AD" for Azure AD.
- Run: CSExportAnalyzer %temp%\export.xml > %temp%\export.csv You have a file in %temp% named export.csv that can be examined in Microsoft Excel. This file contains all changes that are about to be exported.
- Make necessary changes to the data or configuration and run these steps again (Import and Synchronize and Verify) until the changes that are about to be exported are expected.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.