Hello Folks!
Bellow follow the commands to put photo in your Active Directory. This image must be 10kb due to traffic in the network and dimension 96×96.
Open the PowerShell and past the command bellow, replacing the “Drive:\Folder\path.ext” for the location of your picture, “user” put the user logon name.
If you want, I created a script to speed things up….
Import-Module ActiveDirectory
$photo = [byte[]](Get-Content “Drive:\Folder\path.ext” -Encoding byte)
Set-ADUser “user” -Replace @{thumbnailPhoto=$photo}
//