Exchange Toplu Foto Değişimi.

Yönettiğiniz exchange sunucusunda toplu resim değiştirmek için aşağıdaki scripti kullanabilirsiniz.

Get-ADUser -Filter * dan bilgi aldığınızda aşşağıda Name Kısmındaki gözüken şekilde resimleri bir klasöre atın.
DistinguishedName : CN=Selahattin KAYA,OU=Users,DC=test,DC=local
Enabled : True
GivenName : Selahattin
Name : Selahattin Kaya
ObjectClass : user
ObjectGUID : *****************************
SamAccountName : selahattinkaya
SID : *****************************
Surname : *****************************
UserPrincipalName : selahattinkaya@test.local
Klasör Yolu örneği \\testsrv\public\ExchangeResimler\selahattin kaya.jpg
Get-ADUser -Filter '*' | select Name |
ForEach-Object{
$tmp=$_.name
if(Test-Path \\testsrv\public\ExchangeResimler\$tmp.jpg)
{
Set-UserPhoto -Identity "$tmp" -PictureData ([System.IO.File]::ReadAllBytes( "\\testsrv\public\ExchangeResimler\$tmp.jpg")) -Confirm:$false
Write-Host "$tmp : Resim Başarıyla Değiştirildi"
}
else
{
 Write-Host "$tmp : Resim Bulunamadı"
}
}