Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the powershell command to add an exchange user avatar

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Description:

The size of the picture is 96 to 96 pixels, and the size should not exceed 10K.

The user avatar is related to an object property "thumbnailPhoto" in AD. If you find THUMBNAILPHOTO in loading the active Directory schema property in MMC, you can see that this property automatically selects the "copy this property to the global catalog" check box after successfully installing EXCHANGE.

The screenshot is as follows:

The powershell command is as follows (run in EMS):

Import-RecipientDataProperty-Identity cxw-Picture-FileData ([Byte []] $(Get-Content-Path "d:\ t.jpg"-Encoding Byte-ReadCount 0))

The screenshot is as follows:

Operation complete.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report