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

Bulk import Exchange mailbox user avatars

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. First of all, like the method of opening accounts in batches, we use the CSV file to edit the account for which you want to configure email avatars, as shown below:

2. Then, we put the corresponding employee photos into the corresponding storage path, as shown in the following figure:

3. Create a PowerShell script to achieve batch import. The content and location of the script are as follows:

Import-Csv-path C:\ Usert\ csuet.csv-encoding default |% {Set-UserPhoto $.Account-PictureData ([System.IO.File]:: ReadAllBytes ("C:\ Usert\" + $.account + ".jpg"))-Confirm:$false}

Pay attention to modifying the path in the script above.

4. Verify whether there are photos in the mailbox before operation, as shown in the following figure.

5. Start the import photo script, as shown in the following figure:

6. After waiting for the execution of the above script, we will verify whether to import the photos, and from the verification results

At this point, we have completed the batch import of mailbox users' avatars.

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