1. Open the cmd Command Prompt window as administrator and enter as shown in: Regsvr32 schmmgmt.dll
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKiom1eIibew3xEmAAAwANpYO_g915.png " />
2. Open the MMC console window and add the Active Directory schema as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKioL1eIibeTzA7kAABgIJuVEE0296.png " />
3. Check that the Thumbanailphoto attribute value shown is "Copy this attribute to the global catalog", if not, please tick;
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKioL1eIibezWQe3AACyCsnDwGI882.png " />
4, the employee photos stored in the mail server, the size can not exceed 10K, as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKiom1eIibjyLYVRAAArRnxKVxg402.png " />
5. Execute the following command to import the photos to the email account, the command format is as follows:
Import-recipientdataproperty-identity "Wangtingdong"-picture-filedata ([byte[]]$ (Get-content-path) D:\Employees_ Accounts_photo\wangtingdong.jpg "-encoding byte-readcount 0))
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKioL1eIibjhBcYHAAAU75n9wKM228.png " />
6. After completion, the following contents are displayed:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKiom1eIibmQgbxbAAEGL_1aM6U203.png " />
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKioL1eIibmze42EAACrVuaomSw152.png " />
Note: If the picture is not displayed properly, close Outlook and reopen it.
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKiom1eIibnRBWBaAABdRETiq2U007.png " />
6. If you need to change the account photo later, please execute the Picture Import command again, as follows:
Import-recipientdataproperty-identity "Wangtingdong"-picture-filedata ([byte[]]$ (Get-content-path) D:\Employees_ Accounts_photo\wangtingdong.jpg "-encoding byte-readcount 0))
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKioL1eIibry0E95AAAoZecXgz4461.png " />
After re-importing, take the following command to get Exchange offline Address book information, as follows:
[PS] c:\windows\system32>Get-offlineaddressbook
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKiom1eIibrBqaZ4AAAY7KlnnEQ810.png " />
Execute the Update Address Book command with the following command:
[PS] c:\windows\system32>update-offlineaddressbook-identity "Default offline Address Book"
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKiom1eIibvg9xcIAAAXqqK2x78677.png " />
The client performs the download of the Address Book operation as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKioL1eIibvAR8zTAACkX4eTKHY478.png " />
Close the Outlook client and open it again, and you will be able to see the new settings for the account photo as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKiom1eIibyBnSNsAACtcxnGhUY698.png " />
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKioL1eIibySA5HcAABhpjTT9bg334.png " />
Problem
When you import a picture to a user, you will find that even if you update the Exchange offline Address book, the client also downloads the offline address book again, but you still can't see the avatar as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKioL1eIib2i0eKDAADCmyawCJo024.png " />
Troubleshooting ideas:
Since we are using Exchange cache mode, it is very likely to be related to the offline Address Book update time, so we first want to verify that the picture was imported successfully, by canceling Exchange cache mode, as follows:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKiom1eIib2CwCl3AAB4zA_XDh8741.png " />
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKiom1eIib6wvOQzAAA6og3lKeY290.png " />
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M02/84/36/wKioL1eIib6hCa-VAAAqVSMrHQY899.png " />
When you reopen Outlook, you see it now, as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKiom1eIib-zAPiMAABUS-11qF0625.png " />
At this point, you can confirm that the imported avatar is already in effect, leaving the offline Address Book Sync update issue.
Encountering this problem, I found that syncing offline address book is sometimes not used, need to delete the mailbox, reconfigure it just fine, as shown in:
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKioL1eIib-xLAAvAACCUPgP61g559.png " />
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M00/84/36/wKiom1eIib_SWOWaAABnHejBOLY261.png " />
650) this.width=650; "style=" style "src=" Http://s3.51cto.com/wyfs02/M01/84/36/wKioL1eIicDR1lOPAABQdYjqSwQ602.png " />
Exchange2010 publishing a user picture to the Global Address list (GAL)