Thursday, July 25, 2013
Photos in Active Directory
Need to be running Exchange 2010 SP1 , or else you need to make schema changes to the AD.
AD includes the Picture attribute to store thumbnail photos, its ldap name is thumbnailPhoto.
Since it is just a thumbnail, the recommended size in pixels is 96 x 96 , size should be less than 10K .
Use Exchange 2010's cmdlet, Import-RecipientDataProperty to import the photos.
ex.
Import-RecipientDataProperty -Identity "FULL NAME" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\FULLNAME.jpg" -Encoding Byte -ReadCount 0))
Much easier way is to use this free tool, http://www.codetwo.com/freeware/active-directory-photos/
or,
An Active Directory extension available here, http://www.dewdney.co.uk/adext/adext.zip