PowerShell :- How to Add or Update the user photo in Active Directory Using PowerShell.
Size of the photo must be under 10 Kb.
Dimension user Photo must be 96*96 pixels.
$username="User1"
$photo="C:\photo.jpg"
Set-ADUser $username
-Replace @{thumbnailPhoto=([byte[]](Get-Content $photo
-Encoding byte))}
No comments:
Post a Comment