Friday, March 15, 2013

import photos to AD for Lync

Method no.1:

There is a minor schema change required to enable use of photos in AD. The change is to flip the thumbnailPhoto attribute to make it replicate to the Global Catalog. Exchange 2010 Service Pack 1 (SP1) automatically performs this schema change, so if you have deployed Exchange 2010 SP1, you do not need to make a schema change. Otherwise, you do need to follow these steps:
  1. If you haven’t registered the Schema MMC snap-in on the server you want to make this change on, go ahead and do so using the following command: Regsvr32 schmmgmt.dll
  2. Open an MMC console (Start | Run | MMC) and add the Schema snap-in.
  3. In the Active Directory Schema snap-in, expand the Attributes node, and then locate the thumbnailPhoto attribute.
  4. In the Properties page, select Replicate this attribute to the Global Catalog, and click OK.
Then you are ready to import photos into AD. This is done with a Powershell command, for example:
Import-RecipientDataProperty -Identity "Dollie Madison" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\DollieMadison.jpg" -Encoding Byte -ReadCount 0))

Method no.2: 3rd party tool i have tried and it is helpful