Get the App
SLTechnology News&Howtos  ›  Servers  › 

Bulk import Exchange mailbox user avatars

Shulou Source: shulou.com Published: 2022-06-02 13:58:04 11月15日 Update

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.

Tags: Script photo mailbox authentication avatar method path account user image above image below location content function employee file result so far first make Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Huawei Apple Linux Microsoft