WinDeveloper O365 Mailer FREE for 1 Year

WinDeveloper IMF Tune
WinDeveloper IMF Tune

Adding photos to the Exchange 2010 Global Address List

Kenneth Spiteri

Kenneth Spiteri Photo

Kenneth is an Exchange Administrator who loves to share anything he finds interesting with the rest of the community. He also helps with the administration of the site.

Cast your Vote
Poor Excellent

Seeing the photo of users addressed in an email, allows us to more quickly recognize the persons we are interacting with. Apart for Outlook gaining in user friendliness, this can also help pinpoint emails that were addressed to the wrong recipient.

Updating the Offline Address Book

The final piece of the puzzle is to update the Offline Address Book (OAB) for outlook cached mode clients. The OAB thumbnailPhoto property controls how photos are to be retrieved. By default this is set as an Indicator property. The indicator is just a link that points to Active Directory for the photo download.

For the photo to be available offline we need to change the thumbnailPhoto from an Indicator to a Value attribute. Here are the steps to remove the Indicator:

$attributes = (Get-OfflineAddressBook "Default Offline Address Book").ConfiguredAttributes
$attributes.Remove("thumbnailphoto,Indicator")
Set-OfflineAddressBook "Default Offline Address Book" -ConfiguredAttributes $attributes

These are the steps to add the thumbnailPhoto property as a Value:

$attributes = (Get-OfflineAddressBook "Default Offline Address Book").ConfiguredAttributes
$attributes.Add("thumbnailphoto,Value")
Set-OfflineAddressBook "Default Offline Address Book" -ConfiguredAttributes $attributes

Once you do this, if you execute the (Get-OfflineAddressBook "Default Offline Address Book").ConfiguredAttributes command you will see that thumbnailPhoto is now represented as a Value in the Configured Attributes list.

Offline Address Book

Of course, if you don't want Outlook cached mode to display any photos, you could run the command shown above to remove the Indicator attribute from the configured attributes list, without adding it back as a Value attribute.

With the thumbnailPhoto property set, we can force a refresh of the OAB from the Exchange Management Shell:
Update-OfflineAddressBook "Default Offline Address Book"

Viewing GAL photos

So once you set everything up, where can users expect to see these thumbnail photos? Well, the two main applications are Microsoft Outlook and the Microsoft Outlook Social Connector. Within these applications there are a number of locations where the photos are displayed, including the Global Address List dialog box, when viewing a message received from that person, in the initial start screen within Outlook (backstage view found under File | Info), the user's contact card as well as the user's properties in the GAL.

Unfortunately, photos are not displayed in Outlook Web App at the present time.

Oulook Social Connector

The Outlook Social Connector is an add-in for Microsoft Outlook that allows you to view your connections' profiles and updates from one centralized location, without ever leaving Outlook itself. Once you perform the above procedure to import thumbnail photos into Active Directory, you will be able to view a user's photo from the Social Connector, as shown below:

Oulook Social Connector

Outlook 2010

From Microsoft Outlook, when you compose a message and choose the recipient, you can hover over the recipient's name to view their contact card. On the contact card there will be the recipient's thumbnail photo, as shown below:

Recipient Photo

When viewing a received message, the senders thumbnail image appears on the right hand side of the e-mail message:

Sender Photo

If you enter the Global Address List, select the user you wish to view details for and select Properties, the thumbnail photo will be available on the right hand side of the properties window, as shown below:

Global Address List Photo

Finally, from the backstage view, in the File | Info section, you can see the thumbnail image right next to the user account settings. In this example, we are displaying the Administrator account:

Conclusion

In this article I have shown you how to add photos to a Global Address List, making it easier for people to distinguish who they are communicating with. We looked at what is required in terms of preparing Active Directory, uploading photos into the Active Directory user object, updating the offline address book, and finally, viewing the photos as users would during normal operation. In the future, what we'd love to see from Microsoft is a GUI that will help make it easier for administrators to manage the upload process.

User Comments - Page 1 of 1

Rafał 27 Sep 2018 07:42
and
$attributes.Add("thumbnailphoto, Value")
Rafał 27 Sep 2018 07:41
Hi, should be:
$attributes.Remove("thumbnailphoto, Indicator")

Kamal 2 Aug 2015 22:10
Hi, I will be grateful if you can help me out in enabling this feature from Exchange or AD to End user, so outlook or webmail user can upload their own photos.
Reverse this 3 Oct 2013 10:32
Afternoon all, I did this and it all worked and pictures came through on out look and into users blackberrys and their contacts and everything. Then.... I was asked to reverse it as people don't like their image being everywhere. Now I've deployed the GPo to disable the social connector in Outlook 2010 so no pics are shown there but the images are still on the contacts and on the phones. Does anyone know how I can remove them from the Blackberrys and reverse this out?

Thanks in advance!
Mikey 26 Aug 2013 10:02
anyone know if it is possible to change the thumbnail pic on a distribution group and if so how to do it?
Aeid 23 Jan 2013 08:04
I'll echo the previous question: the ConfiguredAttributes property seems to only be present in Exchange 2010. Is there any way to have thumbnailPhotos added to the OAB (i.e. stored as values, not indicator fields) in Exchange 2007?
Hadi Y. 29 Dec 2012 04:25
Any solution for Exchange 2007?
Fox W. 11 Sep 2012 16:13
Hi Paul Adams, would you be able to provide a link to your application? Or an some way we can reach you directly? Thank you.
Security Nut! 18 Jul 2012 19:30
Is there a way to disable users from right-click "Copy" on the photo in Outlook? These photos must not leave our system. Copy paste is just too easy for a user.
Tomasz 12 Jul 2012 23:34
Hi
I did it in my enviroment Exchange 2010 SP2 (and all CU) but in outlook 2010 i don't see photo in Address Book, Global Address List dialog box, Outlook initial page (clicking on Office button). I see only small photo when i add user to TO field in a new e-mail message.
What is the problem?

Tomasz
Stefan Stadlmayr 25 Jun 2012 07:10
is there any way to display the thumbnail photo also in OWA ? (OutlookWebApp)
Nigel 3 Feb 2012 08:03
I have same problem as Tom and Gareth and I am running E2K10 SP2
ijaved 26 Oct 2011 12:03
I created upload script might come in handy. Check out http://usyse.blogspot.com/2011/10/exchange-2010-gal-picture-upload-script.html
Paul Adams 12 Oct 2011 11:05
I have an application that uploads user pictures into active directory, with a treeview control much like AD Users and computers. Just browse to the user you want to set the picture for, select a picture and hit save. Send email to padams at sourcedirect com for the application. Its free and small (800k zipped). Cheers!
Tom 10 Oct 2011 02:34
Rollup 3v3 resolved this problem...
Tom 29 Aug 2011 05:25
I have the same problem. All settings are OK, but pictures not schowing on Outlook 2010 client.
Gareth 4 Aug 2011 02:38
We have Exchange 2010 SP1, AD schema 2008 R2, photos loaded into AD (confirmed cos we can export them to file), but no photos are showing in Outlook (not cahced), any ideas on where to start troubleshooting?
Anonymous 3 Feb 2011 15:52
Can photos be imported into the Exchange GAL for Email Distribution Groups?
Daniela Martinez 3 Feb 2011 09:26
Hi, I would like to know what happen when you configure yor email account of exchange on a cellphone, iphone, blackberry, the photo will be displayed as in the computer, or what will happen?

thanks
Jerome 10 Jan 2011 14:38
What if somr photos do not import even if they are under 10Mb
Adrian 10 Jan 2011 09:28
Matt, your best bet is to restore the default attributes for your OAB, using the command: Set-OfflineAddressBook "Offline Address Book" -UseDefaultAttributes, don't forget to change the "Offline Address Book" to the name of your OAB.
Paul Adams 7 Jan 2011 17:38
I forgot, you have to update the Offline Address book for all of the pictures to be visible immediately. It will take a while for all of the users to see all of the pictures, but eventually they will all download the offline address book. people forget to mention that. ;)
Paul Adams 7 Jan 2011 17:35
I have a working application I wrote that I am willing to share. No powershell, no cli commands. Enter the username, ldap location, domain controller and select an image and click a button. You need domain admin rights. padams at sourcedirect dot com email me and I can send you the C# cose or a zip with the exe. Cheers!
Jameel 22 Nov 2010 16:01
Can this be done if your Exchange is 2007? I have my photos loaded into AD and my Outlook 2010 clients see everything and it works great. However, these powershell commands seem to be for Exchange 2010. Does Exchange 2007 support this?
$attributes = (Get-OfflineAddressBook "Default Offline Address Book").ConfiguredAttributes
$attributes.Remove("thumbnailphoto,Indicator")
Set-OfflineAddressBook "Default Offline Address Book" -ConfiguredAttributes $attributes
$attributes.Add("thumbnailphoto,Value")
Set-OfflineAddressBook "Default Offline Address Book" -ConfiguredAttributes $attributes
Update-OfflineAddressBook "Default Offline Address Book"
Miguel 3 Nov 2010 08:18
Hello, and thank you, it has been very productive. I have followed all steps to configure it and it worked... but... After I closed outlook and restarted it, the pictures did not appear again. I have tested this on several PCs and got the same result. We are using cached mode for the OAB and I believe that the generation of the OAB is wrong. I am getting the following ID event: 9359 from MSExchangeSA and MAPI ID 8008. I have set the debug level to medium and did not get any more information. Hope you could help me.
Jesse 25 Oct 2010 08:13
I had to install rollup 1 for sp1 to get this working again.
Corbett Enders 19 Oct 2010 19:53
The Powershell commands to batch import photos from a directory where the photo filename equals their Exchange mailbox name "john doe.jpg" use the following two lines in Powershell on your Exchange server:

$list = Get-Mailbox -RecipientTypeDetails "usermailbox" -SortBy "name"

$list | foreach { Import-RecipientDataProperty -Identity $_.Name -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\photos\$($_.Name).jpg" -Encoding Byte -ReadCount 0)) }



Jesse 14 Oct 2010 09:13
I had all this working and installed Exchange 2010 sp1 and now outlook doesn't show thumbnails now
Matt 22 Sep 2010 17:42
You forgot a setp in adding the attribute - You MUST remove the attribute from the list before you can run the last command:

$attributes.Remove("thumbnailphoto,Indicator")

This line is required before the last line in the code section to ADD the attribute.
Matt 22 Sep 2010 17:23
I ran something incorrect and now I am only seeing one value configured when I run GetAttributes. How do I pass multiple values into the Set-OfflineAddressBook -ConfiguredAttributes command?
Richard 8 Jul 2010 04:25
Don't worry it is working now
Richard 8 Jul 2010 02:15
I have followed these instructions to the letter but my cached users are not getting the pictures. Any non-chached users are seeing the images. Please what am I doing wrong?
Copyright © 2005 - 2024 All rights reserved. ExchangeInbox.com is not affiliated with Microsoft Corporation