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 ?
Technology Tips and News
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 ?
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}