Friday, March 12, 2010

Outlook 2010 supports photos from GAL

For people that have been longing to publish photos in to the Active Directory and then have those photos viewable in Outlook. The thumbnailPhoto attribute is now being used to show this information. I had talked about this a year or so ago when talking about how to better size pictures to load in to the jpegPhoto attribute. My Directory Manager and Directory Update products allow you to upload a photo in to either the jpegPhoto or thumbnailPhoto attributes. If you have used the jpegPhoto attribute to upload your photos, it is a pretty simple matter to use a tool like ADModify.NET to copy the photos to thumbnailPhoto.

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.



At 2:53 AM, Blogger Unknown said...


I 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?



Post a Comment

<< Home