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:
- 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
- Open an MMC console (Start | Run | MMC) and add the Schema snap-in.
- In the Active Directory Schema snap-in, expand the Attributes node, and then locate the thumbnailPhoto attribute.
- In the Properties page, select Replicate this attribute to the Global Catalog, and click OK.
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