Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 info attribute 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 info attribute.

AD Sync UI, Replication Group Image Mappings — AD attribute "info" mapped to a CC Image PDF, image type JPG, with a base image path

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

Last updated

Was this helpful?