Configuring and using display picture in Exchange Server 2010

First run in elevated command prompt:

regsrv32 schmmgmt.dll

Second, import in powershell:

Import-RecipientDataProperty -Identity <Mailbox> -Picture -FileData ([Byte[]]$(Get-Content -path <Picture Path > -Encoding Byte -ReadCount 0))

Eg.:

Import-RecipientDataProperty -Identity test.user -Picture -FileData ([Byte[]]$(Get-Content -path “c:\pics\testuser.jpg” -Encoding Byte -ReadCount 0))

The ThumbnailPhoto attribute (jpg filesize) is limited to 102400 bytes which means 10KB. This limit is defined in the RangeUpper value of the attribute (change with adsiedit, if need…).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s