Bulk import Exchange mailbox user avatars
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.