Exchange photos
I'm looking for a script that i can apply to logon/logoff script that will get users pictures from the exchange server and apply them to there windows account picture. 

I have found multiple scripts that work that get the pictures from Active Directory, but the quality of photo in active directory isn't great and is much better in exchange

Any help please ?

September 7th, 2015 7:50am

Indeed you can do that using Get-UserPhoto, save it in desired location and use in your logon / logoff script. However, the tiles in Windows is small and imagine a scenario if your exchange has 648 * 648 high resolution picture - so, you need to plan for positioning as well.

Sample code to save User Photo

get-mailbox | % {Get-UserPhoto $_.identity} | % {Set-Content -path "C:\temp\$($_.identity).jpg" -value $_.picturedata -Encoding byte}

Free Windows Admin Tool Kit Click here and download it now
September 7th, 2015 8:41am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics