Automate new Active Directory Sync images
Use a PowerShell script to trigger Active Directory Sync image updates from a CSV file.
AD Sync only replicates when a change occurs in AD (or CC). For images that already exist at initial sync but do not trigger an update, a sample PowerShell script forces the change: it clears the mapped AD attribute (default info) and re-fills it from a CSV, which makes AD Sync push the image to the cardholder.
This script is a Tech Support aid, not a supported or final utility.
Prerequisites
The
infoattribute is configured as the Image Mapping attribute.A CSV of AD users (
sAMAccountName,objectGUID,objectSid, or Distinguished Name) in the source directory.The running Windows Domain User can change the
infoattribute.

How it works
The script reads CSVs from C:\ImageSyncScript\Source, matches AD users, clears and re-fills info, moves the CSV to Completed/Failed, and logs to C:\ImageSyncScript\Logs. It can be scheduled via Task Scheduler.
Scripts: ImageSyncScript for multiple inputs.ps1, ImageSyncScript for single input.ps1.
🔗 Related
Sync - Features and Functions. How replication is triggered.
Last updated
Was this helpful?
