вторник, 5 мая 2015 г.

Фото для echange в AD:

Пункт первый: Схема AD. Требуется небольшое редактирование схемы — щелчок аттрибуту thumbnailPhoto, для его репликации в Global Catalog.

Если вы еще не регистрировали оснастку MMC “AD Schema” — самое время:
Regsvr32 schmmgmt.dll
Открывайте оснастку “AD Schema”
Разверните раздел “Attributes” и найдите thumbnailPhoto. (В оснастке AD Schema аттрибуты сортируются по ldapDisplayName).
На странице свойств аттрибута выберите “Replicate this attribute to the Global Catalog” , и OK.

Теперь можно приступать к загрузке фотографий с помощью командлета Import-RecipientDataProperty, как показано ниже:

Import-RecipientDataProperty -Identity "Vasya Pupkin" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:picturesVasyaPupkin.jpg" -Encoding Byte -ReadCount 0))

Можно задействовать поточную операцию, применяя Get-Mailbox с фильтрами (или Get-DistributionGroupMember если вам нужны члены групп), а результаты потом отправить в циклforeach. Имена пользователей и пути до изображений можно брать из CSV/TXT списка.



Убрать фотку:

Q. How can I remove a user's photo from Active Directory?
A. The Import-RecipientDataProperty and Export-RecipientDataProperty cmdlets allow you to import and export the photo blob to and from thumbnailPhoto attribute, but there's no Remove-RecipientDataProperty cmdlet to remove it. You can use the RemovePicture switch of Set-Mailboxcmdlet to remove a user's photo. For example:

Set-Mailbox "Bharat Suneja" -RemovePicture

You can also use Active Directory tools such as ADSIEdit to null the thumbnailPhoto attribute.

If you want to disable GAL Photos in Outlook 2010 but want to retain 
the thumbnail for other applications, you can do so using a client-side 
registry value or group policy setting, as answered above.



=====================

литература:

http://maximumexchange.ru/2010/03/15/gal-photos-in-exchange-2010-and-outlook-2010/

https://social.technet.microsoft.com/Forums/ru-RU/efcfec6e-0244-4a6f-b6a8-9859a981aa9f/-outlook?forum=exchange2010ru


Комментариев нет:

Отправить комментарий