Bulk Import photos into Active Directory for Sharepoint, Outlook 2010, Outlook 2013 and Lync

A simple Powershell script to import photos from a directory into AD. The photos should be named with the format “samAccountName.jpg”, less than 10k in size, and recommended dimensions of 96×96. To get the photos into the proper format, I used imageMagick’s “mogrify” command. mogrify -path OUTPUT_PATH -format jpg -thumbnail 96×96 *.jpg Embedded github “Gist”:

Read more