July 2017
Intermediate to advanced
648 pages
31h 9m
English
Each user account or contact object in Active Directory has a thumbnailPhoto attribute that can be used to store binary data. The Set-UserPhoto cmdlet is used for reading a .jpg file into a byte array and importing it into the thumbnailPhoto attribute of the user account or contact in Active Directory, using the parameter PictureData followed by the .NET class [System.IO.File]::ReadAllBytes. Once the data has been imported into Active Directory, Outlook will query the thumbnailPhoto attribute of each user and display their photo when you receive an email message from them, or when you are viewing their information in the Global Address List.
Read now
Unlock full access