Author Posts

October 30, 2013 at 12:23 am

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 🙂

This is where I'm at now... 😉

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

October 30, 2013 at 6:55 am

I finally found a solution!

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