Skip to content

Reformat AADConnect Sync Rule Export for Easy Comparisons (for older versions without Config export)

David Loder edited this page Jan 28, 2022 · 1 revision

The AADConnect Synchronization Rules Editor makes it easy to export the current AADConnect rule set but the formatting of the export file makes it difficult to compare rules across different AADConnect servers. This script re-writes the export file into a separate file per rule with each filename based on the rule name. This format is ideal for performing a WinDiff directory comparison.

Including a copy of the Connector exports provides a method to include the Connector name as part of the rule name. This is ideal for multi-forest scenarios where rule names alone are not unique.

You can still obtain WinDiff from https://web.archive.org/web/20060215224549/http://www.computerperformance.co.uk/ScriptsGuy/windiff.zip

Download script from https://github.com/dloder0/AAD-Connect-MIM-FIM-Scripts/blob/master/Write-ExportedRulesToFolder.ps1