Add a picture for a user in AD
fun and fast...........
Set-ADUser BBunny -Replace @{thumbnailPhoto=([byte[]](Get-Content "C:\temp\BBunny.jpg" -Encoding byte))}
you can allways add a bunch of users this way
$users = @(
"BBunny"
"DDuck"
"TDevil"
"RRabbit"
"MJordon"
)
$list += @()
foreach ($user in $users) {
Set-ADUser $user -Replace @{thumbnailPhoto=([byte[]](Get-Content "C:\temp\$user.jpg" -Encoding byte))}
}