exporting thumbnailPhoto attribute to HTML / .jpg

Hi,

I’m trying to export the thumbnailPhoto on ADusers and be able to display the images as HTML or “convert” the bytes back to a .jpg file.

I guess it should be quite simple, I’m just not able to figure it out :slight_smile:

This is where I’m at now… :wink:

Get-ADUser user -Properties thumbnailPhoto | Select-Object -ExpandProperty thumbnailPhoto 

I finally found a solution!

Get-ADUser user -Properties thumbnailPhoto | Select-Object -ExpandProperty thumbnailphoto | Set-Content -Path C:\path.jpg -Encoding Byte