In the article GAL Photos in Exchange 2010 and Outlook 2010, Bharat Suneja talks about how to take advantage of this feature. An especially useful new feature is the ability to upload the photos from the Exchange Management Shell using the Import-RecipientDataProperty cmdlet. The below text is from Bharat's article:
Loading pictures into Active Directory
Now you can start uploading pictures to Active Directory using the Import-RecipientDataProperty cmdlet, as shown in this example:
Import-RecipientDataProperty -Identity "Bharat Suneja" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\BharatSuneja.jpg" -Encoding Byte -ReadCount 0))
To perform a bulk operation you can use Get-Mailbox cmdlet with your choice of filter (or Get-DistributionGroupMember if you want to do this for members of a distribution group), and pipe the mailboxes to a foreach loop. You can also retrieve the user name and path to the thumbnail picture from a CSV/TXT file.
Jim,
ReplyDeleteI came across your blog while searching for a way to copy the jpegPhoto to thumbnailPhoto. You mentioned it was possible using ADmodify.NET. Is this done using the GUI or a command line? I downloaded ADModify.NET and can't seem to find an easy way to do this. Have you done in before?
Thanks!