Monday, June 2, 2014

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 96x96.

To get the photos into the proper format, I used imageMagick's "mogrify" command.

mogrify -path OUTPUT_PATH -format jpg -thumbnail 96x96 *.jpg

Embedded github "Gist":

No comments:

Post a Comment